diff options
| author | 2013-11-17 02:42:14 +0100 | |
|---|---|---|
| committer | 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) | |||
| 233 | } | 233 | } |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | if (client->session_id) { | ||
| 237 | free(client->session_id); | ||
| 238 | client->session_id = NULL; | ||
| 239 | } | ||
| 236 | if (client->udid) { | 240 | if (client->udid) { |
| 237 | free(client->udid); | 241 | free(client->udid); |
| 238 | } | 242 | } |
