summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-05-03 17:31:57 +0200
committerGravatar Nikias Bassen2014-05-03 17:31:57 +0200
commit58a7981be35289750a61cab56deb6effae2db7ce (patch)
tree876b1cdb5787b7490af5ca5ede6b357c4aa19656
parent5b3c3e2b49af4e11e378825d7167e71ee52b7c12 (diff)
downloadlibimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.gz
libimobiledevice-58a7981be35289750a61cab56deb6effae2db7ce.tar.bz2
idevicebackup2: Plug more memory leaks
-rw-r--r--tools/idevicebackup2.c9
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;