From 38c18a9f0b8a62ee110094ddd7e44e7e143018c8 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 20 Nov 2013 16:49:04 +0100 Subject: idevicerestore: Free build identity and manifest plist upon exiting --- src/idevicerestore.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.1-32-gdbae