diff options
author | Nikias Bassen | 2014-05-03 17:31:57 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-05-03 17:31:57 +0200 |
commit | 58a7981be35289750a61cab56deb6effae2db7ce (patch) | |
tree | 876b1cdb5787b7490af5ca5ede6b357c4aa19656 /tools | |
parent | 5b3c3e2b49af4e11e378825d7167e71ee52b7c12 (diff) | |
download | libimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.gz libimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.bz2 |
idevicebackup2: Plug more memory leaks
Diffstat (limited to 'tools')
-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: PRINT_VERBOSE(1, " Finished\n"); } +files_out: if (message) plist_free(message); message = NULL; + if (dlmsg) + free(dlmsg); + dlmsg = NULL; -files_out: if (quit_flag > 0) { /* need to cancel the backup here */ //mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); @@ -2361,6 +2364,10 @@ files_out: idevice_free(device); device = NULL; + if (backup_password) { + free(backup_password); + } + if (udid) { free(udid); udid = NULL; |