diff options
author | Aaron Burghardt | 2013-06-30 20:54:52 -0400 |
---|---|---|
committer | Aaron Burghardt | 2013-06-30 21:29:11 -0400 |
commit | 07ecbf3bf8fada55dbadb5811284dfd09d15e17c (patch) | |
tree | bc443c6777416b27151dbc3e355126dae131d5c0 /tools | |
parent | 8521693b1199e1e5274efed00c908afc8a128516 (diff) | |
download | libimobiledevice-07ecbf3bf8fada55dbadb5811284dfd09d15e17c.tar.gz libimobiledevice-07ecbf3bf8fada55dbadb5811284dfd09d15e17c.tar.bz2 |
Fixed leaked plist uint which is passed to mobilebackup2_send_status_response().
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicebackup2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 41591eb..b4ef94f 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -1943,7 +1943,9 @@ checkpoint: freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_bsize; } #endif - mobilebackup2_send_status_response(mobilebackup2, res, NULL, plist_new_uint(freespace)); + plist_t freespace_item = plist_new_uint(freespace); + mobilebackup2_send_status_response(mobilebackup2, res, NULL, freespace_item); + plist_free(freespace_item); } else if (!strcmp(dlmsg, "DLContentsOfDirectory")) { /* list directory contents */ mb2_handle_list_directory(mobilebackup2, message, backup_directory); |