diff options
author | Nikias Bassen | 2011-10-12 20:35:23 +0200 |
---|---|---|
committer | Nikias Bassen | 2011-10-12 20:35:23 +0200 |
commit | d51431edc3987cb9e595fdec874cdf869935d21d (patch) | |
tree | 6e59fa2bb45188bc946e7ed43d3ad3c57c3bf2dc /tools | |
parent | c90fc4c934ac7b024c1fc1813bb3cffb5333e18f (diff) | |
download | libimobiledevice-d51431edc3987cb9e595fdec874cdf869935d21d.tar.gz libimobiledevice-d51431edc3987cb9e595fdec874cdf869935d21d.tar.bz2 |
idevicebackup2: plug another memory leak
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicebackup2.c | 2 |
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 */ |