diff options
author | Martin Szulecki | 2012-07-17 17:11:59 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 17:11:59 +0200 |
commit | 2492647074906571045038e1fc95f3c0c0e27ce1 (patch) | |
tree | e7334577947bf1c7def61ff0693e1960d5356275 | |
parent | 4a7fe85ca5e5a5dfa49df9a70e276c57a085666b (diff) | |
download | idevicerestore-2492647074906571045038e1fc95f3c0c0e27ce1.tar.gz idevicerestore-2492647074906571045038e1fc95f3c0c0e27ce1.tar.bz2 |
restore: Plug leak and free USBLog and PanicLog if received
-rw-r--r-- | src/restore.c | 2 |
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); |