cvs: php-src(PHP_5_2) /ext/openssl xp_ssl.c
| From: | Antony Dovgal | Date: | Wed, 04 Apr 2007 10:44:55 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/openssl xp_ssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43712@lists.php.net to get a copy of this message | ||
tony2001 Wed Apr 4 10:44:55 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/openssl xp_ssl.c
Log:
MFH: fix leak on error
http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/xp_ssl.c?r1=1.22.2.3.2.6&r2=1.22.2.3.2.7&diff_format=u
Index: php-src/ext/openssl/xp_ssl.c
diff -u php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.6 php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.7
--- php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.6 Wed Mar 14 19:22:14 2007
+++ php-src/ext/openssl/xp_ssl.c Wed Apr 4 10:44:55 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xp_ssl.c,v 1.22.2.3.2.6 2007/03/14 19:22:14 tony2001 Exp $ */
+/* $Id: xp_ssl.c,v 1.22.2.3.2.7 2007/04/04 10:44:55 tony2001 Exp $ */
#include "php.h"
#include "ext/standard/file.h"
@@ -169,6 +169,9 @@
err,
ebuf ? "OpenSSL Error messages:\n" : "",
ebuf ? ebuf : "");
+ if (ebuf) {
+ efree(ebuf);
+ }
}
retry = 0;