Make sure applications free up pkey structures and add netscape extension
[openssl.git] / crypto / asn1 / t_req.c
index 7df749a..5caee74 100644 (file)
@@ -138,6 +138,8 @@ X509_REQ *x;
 #endif
                BIO_printf(bp,"%12sUnknown Public Key:\n","");
 
+       EVP_PKEY_free(pkey);
+
        /* may not be */
        sprintf(str,"%8sAttributes:\n","");
        if (BIO_puts(bp,str) <= 0) goto err;