diff options
author | Nikias Bassen | 2015-05-24 00:12:48 +0200 |
---|---|---|
committer | Nikias Bassen | 2015-05-24 00:12:48 +0200 |
commit | 65def891530879ffe9b45c1ccee64a6bed1ea93f (patch) | |
tree | 06f9c26e5c88981d44f019ae36c2c25217c44e4f /src | |
parent | 1ff3448d2e27f1bac8d2f0af8b8e952854860278 (diff) | |
download | libimobiledevice-65def891530879ffe9b45c1ccee64a6bed1ea93f.tar.gz libimobiledevice-65def891530879ffe9b45c1ccee64a6bed1ea93f.tar.bz2 |
lockdown: Remove unneeded plist_free() calls since entire dict is freed later
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index d1296c9..7cb3091 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -960,8 +960,6 @@ static lockdownd_error_t lockdownd_do_pair(lockdownd_client_t client, lockdownd_ if (extra_node && plist_get_node_type(extra_node) == PLIST_DATA) { debug_info("Saving EscrowBag from response in pair record"); plist_dict_set_item(pair_record_plist, USERPREF_ESCROW_BAG_KEY, plist_copy(extra_node)); - plist_free(extra_node); - extra_node = NULL; } /* save previously retrieved wifi mac address in pair record */ @@ -991,9 +989,6 @@ static lockdownd_error_t lockdownd_do_pair(lockdownd_client_t client, lockdownd_ ret = lockdownd_strtoerr(value); free(value); } - - plist_free(error_node); - error_node = NULL; } } |