diff options
| author | 2014-05-03 17:31:57 +0200 | |
|---|---|---|
| committer | 2014-05-03 17:31:57 +0200 | |
| commit | 58a7981be35289750a61cab56deb6effae2db7ce (patch) | |
| tree | 876b1cdb5787b7490af5ca5ede6b357c4aa19656 | |
| parent | 5b3c3e2b49af4e11e378825d7167e71ee52b7c12 (diff) | |
| download | libimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.gz libimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.bz2 | |
idevicebackup2: Plug more memory leaks
| -rw-r--r-- | tools/idevicebackup2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 7576879..5f14862 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -2225,11 +2225,14 @@ checkpoint: | |||
| 2225 | PRINT_VERBOSE(1, " Finished\n"); | 2225 | PRINT_VERBOSE(1, " Finished\n"); |
| 2226 | } | 2226 | } |
| 2227 | 2227 | ||
| 2228 | files_out: | ||
| 2228 | if (message) | 2229 | if (message) |
| 2229 | plist_free(message); | 2230 | plist_free(message); |
| 2230 | message = NULL; | 2231 | message = NULL; |
| 2232 | if (dlmsg) | ||
| 2233 | free(dlmsg); | ||
| 2234 | dlmsg = NULL; | ||
| 2231 | 2235 | ||
| 2232 | files_out: | ||
| 2233 | if (quit_flag > 0) { | 2236 | if (quit_flag > 0) { |
| 2234 | /* need to cancel the backup here */ | 2237 | /* need to cancel the backup here */ |
| 2235 | //mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); | 2238 | //mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); |
| @@ -2361,6 +2364,10 @@ files_out: | |||
| 2361 | idevice_free(device); | 2364 | idevice_free(device); |
| 2362 | device = NULL; | 2365 | device = NULL; |
| 2363 | 2366 | ||
| 2367 | if (backup_password) { | ||
| 2368 | free(backup_password); | ||
| 2369 | } | ||
| 2370 | |||
| 2364 | if (udid) { | 2371 | if (udid) { |
| 2365 | free(udid); | 2372 | free(udid); |
| 2366 | udid = NULL; | 2373 | udid = NULL; |
