]> granicus.if.org Git - php/commitdiff
MFH: fix leak on error
authorAntony Dovgal <tony2001@php.net>
Wed, 4 Apr 2007 10:44:55 +0000 (10:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 4 Apr 2007 10:44:55 +0000 (10:44 +0000)
ext/openssl/xp_ssl.c

index df03982878ffe333afaebf4236451598e9a23be4..f0bad655468105dfdaddd633a905c1d3cbb65903 100644 (file)
@@ -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;