From d51431edc3987cb9e595fdec874cdf869935d21d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 12 Oct 2011 20:35:23 +0200 Subject: idevicebackup2: plug another memory leak --- tools/idevicebackup2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/idevicebackup2.c') 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 */ -- cgit v1.1-32-gdbae