summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:
2225 PRINT_VERBOSE(1, " Finished\n"); 2225 PRINT_VERBOSE(1, " Finished\n");
2226 } 2226 }
2227 2227
2228files_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
2232files_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;