summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 16:53:33 +0200
committerGravatar Nikias Bassen2012-07-17 16:53:33 +0200
commit4a89ce076e22a8d20648a07faf585ab3210179b0 (patch)
treed8df960f10fd7fb589dc393f72e5db5887948c2d /src/restore.c
parent45dc110c6b923a8d9c4e79ab7667a13726c50699 (diff)
downloadidevicerestore-4a89ce076e22a8d20648a07faf585ab3210179b0.tar.gz
idevicerestore-4a89ce076e22a8d20648a07faf585ab3210179b0.tar.bz2
restore: Fix double free crash on second run of Trek baseband data handler
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index b46702d..d0f9363 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1162,6 +1162,7 @@ static int restore_handle_trek_bbfw(const char* bbfwtmp, plist_t response, unsig
error("ERROR: out of memory\n");
goto leave;
}
+ blob = NULL;
if (zip_add(za, "bbticket.der", zs) == -1) {
error("ERROR: could not add bbticket.der to archive\n");