From: Antony Dovgal Date: Wed, 4 Apr 2007 10:44:55 +0000 (+0000) Subject: MFH: fix leak on error X-Git-Tag: php-5.2.2RC1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e07b83afb2d873b4e2b76b84d41ec4c2b685eab4;p=php MFH: fix leak on error --- 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;