]> granicus.if.org Git - php/commitdiff
Fix memory leak with not freeing OpenSSL errors
authorJakub Zelenka <bukka@php.net>
Mon, 25 Jan 2016 16:50:16 +0000 (16:50 +0000)
committerJakub Zelenka <bukka@php.net>
Mon, 25 Jan 2016 16:50:16 +0000 (16:50 +0000)
ext/openssl/openssl.c

index 27d9c6c43fc5d92cfda654bea6a1a16fb7f36d63..88e396c630976329e9931d1e37de1c2bb832ddd8 100644 (file)
@@ -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);