diff options
author | Aaron Burghardt | 2013-06-30 20:35:11 -0400 |
---|---|---|
committer | Aaron Burghardt | 2013-06-30 21:27:39 -0400 |
commit | 6648ebcd3cf1fe2a9aab7d18f9ae535e2795b080 (patch) | |
tree | 2ea308a79f3ecdf7ab4085376a70bd4cb60d82d9 | |
parent | 62349d85b5fb39e1dc61974b38594c7f0d58c29b (diff) | |
download | libimobiledevice-6648ebcd3cf1fe2a9aab7d18f9ae535e2795b080.tar.gz libimobiledevice-6648ebcd3cf1fe2a9aab7d18f9ae535e2795b080.tar.bz2 |
Fixed memory leak in lockdownd_gen_pair_cert() by freeing X509_EXTENSION object when using OpenSSL.
-rw-r--r-- | src/lockdown.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 21aa334..b07366b 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -1162,6 +1162,7 @@ lockdownd_error_t lockdownd_gen_pair_cert(key_data_t public_key, key_data_t * od debug_info("ERROR: X509V3_EXT_conf_nid failed"); } X509_add_ext(dev_cert, ext, -1); + X509_EXTENSION_free(ext); ASN1_TIME* asn1time = ASN1_TIME_new(); ASN1_TIME_set(asn1time, time(NULL)); |