diff options
author | Nikias Bassen | 2014-03-18 21:44:50 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-03-18 21:44:50 +0100 |
commit | a34a537d1408f8692daeadd5e1f5859ff13a3473 (patch) | |
tree | 82a20a64a59ba80f134450688b374f23b6b64da5 | |
parent | 637bd29c70c54bf1d6cf2dfeee0c82da8b604657 (diff) | |
download | libimobiledevice-a34a537d1408f8692daeadd5e1f5859ff13a3473.tar.gz libimobiledevice-a34a537d1408f8692daeadd5e1f5859ff13a3473.tar.bz2 |
lockdown: make sure type is always free'd in lockdownd_client_new_with_handshake
-rw-r--r-- | src/lockdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 227246a..284840d 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -754,9 +754,9 @@ lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdown if (strcmp("com.apple.mobile.lockdown", type)) { debug_info("Warning QueryType request returned \"%s\".", type); } - if (type) - free(type); } + if (type) + free(type); userpref_device_record_get_host_id(client_loc->udid, &host_id); if (LOCKDOWN_E_SUCCESS == ret && !host_id) { |