From e07b83afb2d873b4e2b76b84d41ec4c2b685eab4 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 4 Apr 2007 10:44:55 +0000 Subject: [PATCH] MFH: fix leak on error --- ext/openssl/xp_ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index df03982878..f0bad65546 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -169,6 +169,9 @@ static int handle_ssl_error(php_stream *stream, int nr_bytes TSRMLS_DC) err, ebuf ? "OpenSSL Error messages:\n" : "", ebuf ? ebuf : ""); + if (ebuf) { + efree(ebuf); + } } retry = 0; -- 2.50.1