From a34a537d1408f8692daeadd5e1f5859ff13a3473 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 18 Mar 2014 21:44:50 +0100 Subject: lockdown: make sure type is always free'd in lockdownd_client_new_with_handshake --- src/lockdown.c | 4 ++-- 1 file 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) { -- cgit v1.1-32-gdbae