summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-17 02:42:14 +0100
committerGravatar Martin Szulecki2013-11-30 20:14:00 +0100
commit0bbccf2fde7b865f570316a52f8cb3d0de408e60 (patch)
treec3b846a13dbd3a4de6bab90bf927d60e8a36e183 /src
parent868e336f8337e14e0288ac1d3c9fd89bee6d1961 (diff)
downloadlibimobiledevice-0bbccf2fde7b865f570316a52f8cb3d0de408e60.tar.gz
libimobiledevice-0bbccf2fde7b865f570316a52f8cb3d0de408e60.tar.bz2
lockdown: Make sure to free client->session_id for sure
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c4
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);
}