summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 4cc9d84..e7fa813 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -884,6 +884,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t
userpref_read_system_buid(&system_buid);
plist_dict_set_item(*pair_record, USERPREF_SYSTEM_BUID_KEY, plist_new_string(system_buid));
+ /* set HostID */
pair_record_set_host_id(*pair_record, host_id);
if (ret != LOCKDOWN_E_SUCCESS) {
@@ -895,6 +896,8 @@ leave:
free(host_id);
if (system_buid)
free(system_buid);
+ if (public_key.data)
+ free(public_key.data);
return ret;
}