diff options
author | Martin Szulecki | 2013-11-17 02:42:14 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-30 20:14:00 +0100 |
commit | 0bbccf2fde7b865f570316a52f8cb3d0de408e60 (patch) | |
tree | c3b846a13dbd3a4de6bab90bf927d60e8a36e183 | |
parent | 868e336f8337e14e0288ac1d3c9fd89bee6d1961 (diff) | |
download | libimobiledevice-0bbccf2fde7b865f570316a52f8cb3d0de408e60.tar.gz libimobiledevice-0bbccf2fde7b865f570316a52f8cb3d0de408e60.tar.bz2 |
lockdown: Make sure to free client->session_id for sure
-rw-r--r-- | src/lockdown.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 60fbf0c..a0bc2f4 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -233,6 +233,10 @@ static lockdownd_error_t lockdownd_client_free_simple(lockdownd_client_t client) } } + if (client->session_id) { + free(client->session_id); + client->session_id = NULL; + } if (client->udid) { free(client->udid); } |