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

index 3dcf6e6394487f54a2f4fd2c72e91050ac9209ca..5c9d90bb0fa7d8003677653ae5dc3fe2ec270747 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;