summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lockdown.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 60b57b1..bc04fe9 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -786,6 +786,13 @@ static lockdownd_error_t generate_pair_record_plist(gnutls_datum_t public_key, c
if (!host_id)
free(host_id_loc);
+ if (device_cert.data)
+ free(device_cert.data);
+ if (host_cert.data)
+ free(host_cert.data);
+ if (root_cert.data)
+ free(root_cert.data);
+
return ret;
}