diff options
| author | 2014-03-18 21:44:50 +0100 | |
|---|---|---|
| committer | 2014-03-18 21:44:50 +0100 | |
| commit | a34a537d1408f8692daeadd5e1f5859ff13a3473 (patch) | |
| tree | 82a20a64a59ba80f134450688b374f23b6b64da5 /src/lockdown.c | |
| 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
Diffstat (limited to 'src/lockdown.c')
| -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 | |||
| 754 | if (strcmp("com.apple.mobile.lockdown", type)) { | 754 | if (strcmp("com.apple.mobile.lockdown", type)) { |
| 755 | debug_info("Warning QueryType request returned \"%s\".", type); | 755 | debug_info("Warning QueryType request returned \"%s\".", type); |
| 756 | } | 756 | } |
| 757 | if (type) | ||
| 758 | free(type); | ||
| 759 | } | 757 | } |
| 758 | if (type) | ||
| 759 | free(type); | ||
| 760 | 760 | ||
| 761 | userpref_device_record_get_host_id(client_loc->udid, &host_id); | 761 | userpref_device_record_get_host_id(client_loc->udid, &host_id); |
| 762 | if (LOCKDOWN_E_SUCCESS == ret && !host_id) { | 762 | if (LOCKDOWN_E_SUCCESS == ret && !host_id) { |
