diff options
| author | 2011-05-28 23:03:05 +0200 | |
|---|---|---|
| committer | 2011-05-28 23:03:05 +0200 | |
| commit | f8f3f299a56aeccce1b978fed7620137f7072518 (patch) | |
| tree | fe1c50eebf928fb7bcd70a1a3d6c3c92d8925304 | |
| parent | ceae1d897597c66c19c2ed30b3049ce09db78233 (diff) | |
| download | libimobiledevice-f8f3f299a56aeccce1b978fed7620137f7072518.tar.gz libimobiledevice-f8f3f299a56aeccce1b978fed7620137f7072518.tar.bz2 | |
idevicebackup2: plug a small memory leak
| -rw-r--r-- | tools/idevicebackup2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index d9481f7..34dfe9e 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -704,7 +704,9 @@ static void mb2_handle_send_files(plist_t message, const char *backup_dir) | |||
| 704 | mobilebackup2_send_raw(mobilebackup2, (char*)&zero, 4, &sent); | 704 | mobilebackup2_send_raw(mobilebackup2, (char*)&zero, 4, &sent); |
| 705 | 705 | ||
| 706 | if (!errplist) { | 706 | if (!errplist) { |
| 707 | mobilebackup2_send_status_response(mobilebackup2, 0, NULL, plist_new_dict()); | 707 | plist_t emptydict = plist_new_dict(); |
| 708 | mobilebackup2_send_status_response(mobilebackup2, 0, NULL, emptydict); | ||
| 709 | plist_free(emptydict); | ||
| 708 | } else { | 710 | } else { |
| 709 | mobilebackup2_send_status_response(mobilebackup2, -13, "Multi status", errplist); | 711 | mobilebackup2_send_status_response(mobilebackup2, -13, "Multi status", errplist); |
| 710 | plist_free(errplist); | 712 | plist_free(errplist); |
