summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2016-01-25 16:50:16 +0000
committerJakub Zelenka <bukka@php.net>2016-01-25 16:50:16 +0000
commita63d0f55da87fc620c66f1b909d752d7c8b1159c (patch)
treee9fb12b1153034884170c03e8e976c950c58828e /ext/openssl
parent47e7662a13f8ecc606403405322b93b2ba953b4c (diff)
downloadphp-git-a63d0f55da87fc620c66f1b909d752d7c8b1159c.tar.gz
Fix memory leak with not freeing OpenSSL errors
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 27d9c6c43f..88e396c630 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1277,6 +1277,10 @@ PHP_MSHUTDOWN_FUNCTION(openssl)
{
EVP_cleanup();
+#if OPENSSL_VERSION_NUMBER >= 0x00090805f
+ ERR_free_strings();
+#endif
+
php_unregister_url_stream_wrapper("https" TSRMLS_CC);
php_unregister_url_stream_wrapper("ftps" TSRMLS_CC);