com php-src: Fix memory leak with not freeing OpenSSL errors: ext/openssl/openssl.c
| From: | Jakub Zelenka | Date: | Mon, 25 Jan 2016 16:50:16 +0000 |
| Subject: | com php-src: Fix memory leak with not freeing OpenSSL errors: ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90754@lists.php.net to get a copy of this message | ||
Commit: a63d0f55da87fc620c66f1b909d752d7c8b1159c
Author: Jakub Zelenka <bukka@php.net> Mon, 25 Jan 2016 16:50:16 +0000
Parents: 47e7662a13f8ecc606403405322b93b2ba953b4c
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a63d0f55da87fc620c66f1b909d752d7c8b1159c
Log:
Fix memory leak with not freeing OpenSSL errors
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 27d9c6c..88e396c 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);