From a63d0f55da87fc620c66f1b909d752d7c8b1159c Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Mon, 25 Jan 2016 16:50:16 +0000 Subject: [PATCH] Fix memory leak with not freeing OpenSSL errors --- ext/openssl/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.40.0