Make sure applications free up pkey structures and add netscape extension
[openssl.git] / crypto / asn1 / t_x509.c
index 9a8c8bf..4bf1bd4 100644 (file)
@@ -182,6 +182,8 @@ X509 *x;
 #endif
                BIO_printf(bp,"%12sUnknown Public Key:\n","");
 
+       EVP_PKEY_free(pkey);
+
        n=X509_get_ext_count(x);
        if (n > 0)
                {