summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup2.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-10-12 20:35:23 +0200
committerGravatar Nikias Bassen2011-10-12 20:35:23 +0200
commitd51431edc3987cb9e595fdec874cdf869935d21d (patch)
tree6e59fa2bb45188bc946e7ed43d3ad3c57c3bf2dc /tools/idevicebackup2.c
parentc90fc4c934ac7b024c1fc1813bb3cffb5333e18f (diff)
downloadlibimobiledevice-d51431edc3987cb9e595fdec874cdf869935d21d.tar.gz
libimobiledevice-d51431edc3987cb9e595fdec874cdf869935d21d.tar.bz2
idevicebackup2: plug another memory leak
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 34dfe9e..30ec272 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -693,10 +693,12 @@ static void mb2_handle_send_files(plist_t message, const char *backup_dir)
continue;
if (mb2_handle_send_file(backup_dir, str, &errplist) < 0) {
+ free(str);
//printf("Error when sending file '%s' to device\n", str);
// TODO: perhaps we can continue, we've got a multi status response?!
break;
}
+ free(str);
}
/* send terminating 0 dword */