summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-20 16:49:04 +0100
committerGravatar Martin Szulecki2013-11-20 17:04:04 +0100
commit38c18a9f0b8a62ee110094ddd7e44e7e143018c8 (patch)
tree95f4a0b2f5e920c92cc84c85523bcbe2908fe4a0
parent47eba3dd43ce36c05b060082c7e32682d9be99bb (diff)
downloadidevicerestore-38c18a9f0b8a62ee110094ddd7e44e7e143018c8.tar.gz
idevicerestore-38c18a9f0b8a62ee110094ddd7e44e7e143018c8.tar.bz2
idevicerestore: Free build identity and manifest plist upon exiting
-rw-r--r--src/idevicerestore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 82629fa..18540f8 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -912,6 +912,12 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
idevicerestore_progress(client, RESTORE_NUM_STEPS-1, 1.0);
}
+ if (buildmanifest)
+ plist_free(buildmanifest);
+
+ if (build_identity)
+ plist_free(build_identity);
+
return result;
}