diff options
author | Martin Szulecki | 2012-09-20 22:18:44 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-11-07 22:24:33 +0100 |
commit | 954cc07288cee8522730b75e338b7c8036eba992 (patch) | |
tree | 587d9536007181d45b1277a202394c8fa249cfd8 /src/restore.c | |
parent | 35677aa6fcb1c1a5d7f77dc5c8cb74152ad8b77e (diff) | |
download | idevicerestore-954cc07288cee8522730b75e338b7c8036eba992.tar.gz idevicerestore-954cc07288cee8522730b75e338b7c8036eba992.tar.bz2 |
restore: Plug possible memory leak
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c index 150c5a6..0c9fce4 100644 --- a/src/restore.c +++ b/src/restore.c @@ -858,13 +858,12 @@ int restore_send_nor(restored_client_t restore, struct idevicerestore_client_t* return -1; } - dict = plist_new_dict(); - if (ipsw_get_component_by_path(client->ipsw, client->tss, "LLB", llb_path, &llb_data, &llb_size) < 0) { error("ERROR: Unable to get signed LLB\n"); return -1; } + dict = plist_new_dict(); plist_dict_insert_item(dict, "LlbImageData", plist_new_data(llb_data, (uint64_t) llb_size)); norimage_array = plist_new_array(); |