summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index ce50f3f..2bda917 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1425,6 +1425,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
if (node && plist_get_node_type(node) == PLIST_STRING) {
plist_get_string_val(node, &sval);
info("USB log is available:\n%s\n", sval);
+ free(sval);
sval = NULL;
}
@@ -1432,6 +1433,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
if (node && plist_get_node_type(node) == PLIST_STRING) {
plist_get_string_val(node, &sval);
info("Panic log is available:\n%s\n", sval);
+ free(sval);
sval = NULL;
}
plist_free(info);