summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-20 16:53:40 +0100
committerGravatar Martin Szulecki2013-11-20 17:04:04 +0100
commitb038ac6e18fc6c58e396104d5bcc67b49105ebfb (patch)
tree132e7460594b12b2986a413f4521d3c59e205bbe /src
parentf2f7cca119dfbae9b302b6ac4624f4d6cf63ac41 (diff)
downloadidevicerestore-b038ac6e18fc6c58e396104d5bcc67b49105ebfb.tar.gz
idevicerestore-b038ac6e18fc6c58e396104d5bcc67b49105ebfb.tar.bz2
restore: Make sure to free MsgType string after having handled it
Diffstat (limited to 'src')
-rw-r--r--src/restore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 5978568..9729e72 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1835,6 +1835,9 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
debug_plist(message);
}
+ if (type)
+ free(type);
+
plist_free(message);
message = NULL;
}