Fix memory leak with not freeing OpenSSL errors

This commit is contained in:
Jakub Zelenka 2016-01-25 16:50:16 +00:00
parent 47e7662a13
commit a63d0f55da

View File

@ -1277,6 +1277,10 @@ PHP_MSHUTDOWN_FUNCTION(openssl)
{ {
EVP_cleanup(); EVP_cleanup();
#if OPENSSL_VERSION_NUMBER >= 0x00090805f
ERR_free_strings();
#endif
php_unregister_url_stream_wrapper("https" TSRMLS_CC); php_unregister_url_stream_wrapper("https" TSRMLS_CC);
php_unregister_url_stream_wrapper("ftps" TSRMLS_CC); php_unregister_url_stream_wrapper("ftps" TSRMLS_CC);