summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-18 21:44:50 +0100
committerGravatar Nikias Bassen2014-03-18 21:44:50 +0100
commita34a537d1408f8692daeadd5e1f5859ff13a3473 (patch)
tree82a20a64a59ba80f134450688b374f23b6b64da5 /src
parent637bd29c70c54bf1d6cf2dfeee0c82da8b604657 (diff)
downloadlibimobiledevice-a34a537d1408f8692daeadd5e1f5859ff13a3473.tar.gz
libimobiledevice-a34a537d1408f8692daeadd5e1f5859ff13a3473.tar.bz2
lockdown: make sure type is always free'd in lockdownd_client_new_with_handshake
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c4
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) {