From 4a89ce076e22a8d20648a07faf585ab3210179b0 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 17 Jul 2012 16:53:33 +0200 Subject: restore: Fix double free crash on second run of Trek baseband data handler --- src/restore.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/restore.c') 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"); -- cgit v1.1-32-gdbae