summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-05-16 15:02:13 +0200
committerGravatar Martin Szulecki2014-05-16 15:02:13 +0200
commit9d16f65017b7c0a93a83f793c1998d8c39a3bc5e (patch)
treeeb618ee0e5e25fc04d96ea5b3deb0964d2dd7745 /src
parent9bc7a528d6ff42211f8d19ffa8ab2c2d371ea8d0 (diff)
downloadidevicerestore-9d16f65017b7c0a93a83f793c1998d8c39a3bc5e.tar.gz
idevicerestore-9d16f65017b7c0a93a83f793c1998d8c39a3bc5e.tar.bz2
tss: Free sep_nonce after use to prevent leak
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index c294475..1e7cd6f 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1441,6 +1441,7 @@ int get_tss_response(struct idevicerestore_client_t* client, plist_t build_ident
if (sep_nonce) {
plist_dict_set_item(parameters, "ApSepNonce", plist_new_data((const char*)sep_nonce, sep_nonce_size));
+ free(sep_nonce);
}
plist_dict_set_item(parameters, "ApProductionMode", plist_new_bool(1));