summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-05-28 23:03:05 +0200
committerGravatar Nikias Bassen2011-05-28 23:03:05 +0200
commitf8f3f299a56aeccce1b978fed7620137f7072518 (patch)
treefe1c50eebf928fb7bcd70a1a3d6c3c92d8925304 /tools
parentceae1d897597c66c19c2ed30b3049ce09db78233 (diff)
downloadlibimobiledevice-f8f3f299a56aeccce1b978fed7620137f7072518.tar.gz
libimobiledevice-f8f3f299a56aeccce1b978fed7620137f7072518.tar.bz2
idevicebackup2: plug a small memory leak
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index d9481f7..34dfe9e 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -704,7 +704,9 @@ static void mb2_handle_send_files(plist_t message, const char *backup_dir)
mobilebackup2_send_raw(mobilebackup2, (char*)&zero, 4, &sent);
if (!errplist) {
- mobilebackup2_send_status_response(mobilebackup2, 0, NULL, plist_new_dict());
+ plist_t emptydict = plist_new_dict();
+ mobilebackup2_send_status_response(mobilebackup2, 0, NULL, emptydict);
+ plist_free(emptydict);
} else {
mobilebackup2_send_status_response(mobilebackup2, -13, "Multi status", errplist);
plist_free(errplist);