php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch Revert-Fix-memory-leak-with-not-freeing-OpenSSL-erro.patch for OpenSSL related Bug #72140

Patch version 2016-05-03 08:37 UTC

Return to Bug #72140 | Download this patch
Patch Revisions:

Developer: mpasinski@gmail.com

From 325e9502d021e7c9f14f89ff3a8d838ddcd14f0a Mon Sep 17 00:00:00 2001
From: Marcin Pasinski <marcin.pasinski@cfengine.com>
Date: Tue, 3 May 2016 10:31:50 +0200
Subject: [PATCH] Revert "Fix memory leak with not freeing OpenSSL errors"

This reverts commit a63d0f55da87fc620c66f1b909d752d7c8b1159c.
---
 ext/openssl/openssl.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 88e396c..27d9c6c 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1277,10 +1277,6 @@ 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);
 
-- 
1.9.1

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC