diff options
| author | 2013-06-30 20:54:52 -0400 | |
|---|---|---|
| committer | 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: | |||
| 1943 | freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_bsize; | 1943 | freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_bsize; |
| 1944 | } | 1944 | } |
| 1945 | #endif | 1945 | #endif |
| 1946 | mobilebackup2_send_status_response(mobilebackup2, res, NULL, plist_new_uint(freespace)); | 1946 | plist_t freespace_item = plist_new_uint(freespace); |
| 1947 | mobilebackup2_send_status_response(mobilebackup2, res, NULL, freespace_item); | ||
| 1948 | plist_free(freespace_item); | ||
| 1947 | } else if (!strcmp(dlmsg, "DLContentsOfDirectory")) { | 1949 | } else if (!strcmp(dlmsg, "DLContentsOfDirectory")) { |
| 1948 | /* list directory contents */ | 1950 | /* list directory contents */ |
| 1949 | mb2_handle_list_directory(mobilebackup2, message, backup_directory); | 1951 | mb2_handle_list_directory(mobilebackup2, message, backup_directory); |
