summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-20 17:02:10 +0100
committerGravatar Martin Szulecki2013-11-20 17:04:05 +0100
commit40c4885c31941e5a4af955e097a70d698a59ba64 (patch)
treea2373a8be328862d7fba0adbf573e13510663497 /src
parent76e3f71c1aa7d54b2653073a32ae42c8088ca72a (diff)
downloadidevicerestore-40c4885c31941e5a4af955e097a70d698a59ba64.tar.gz
idevicerestore-40c4885c31941e5a4af955e097a70d698a59ba64.tar.bz2
restore: Free LLB image data after having added it to fix a memory leak
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 53f2367..ef082d6 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -912,6 +912,8 @@ int restore_send_nor(restored_client_t restore, struct idevicerestore_client_t*
dict = plist_new_dict();
plist_dict_insert_item(dict, "LlbImageData", plist_new_data((char*)llb_data, (uint64_t) llb_size));
+ if (llb_data)
+ free(llb_data);
norimage_array = plist_new_array();