We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c939a67 commit 99f3e0fCopy full SHA for 99f3e0f
ext/openssl/openssl.c
@@ -3029,8 +3029,6 @@ PHP_FUNCTION(openssl_pkcs12_read)
3029
}
3030
3031
RETVAL_TRUE;
3032
-
3033
- PKCS12_free(p12);
3034
} else {
3035
php_openssl_store_errors();
3036
@@ -3045,6 +3043,9 @@ PHP_FUNCTION(openssl_pkcs12_read)
3045
3043
if (cert) {
3046
3044
X509_free(cert);
3047
+ if (p12) {
+ PKCS12_free(p12);
3048
+ }
3049
3050
/* }}} */
3051
0 commit comments