cvs: php-src(PHP_5_2) /ext/standard http_fopen_wrapper.c
| From: | Hannes Magnusson | Date: | Mon, 23 Apr 2007 16:37:28 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44060@lists.php.net to get a copy of this message | ||
bjori Mon Apr 23 16:37:28 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard http_fopen_wrapper.c
Log:
MFH: Plug leak when trying to write via the http wrapper
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.99.2.12.2.8&r2=1.99.2.12.2.9&diff_format=u
Index: php-src/ext/standard/http_fopen_wrapper.c
diff -u php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.8
php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.9
--- php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.8 Tue Feb 27 03:28:16 2007
+++ php-src/ext/standard/http_fopen_wrapper.c Mon Apr 23 16:37:28 2007
@@ -19,7 +19,7 @@
| Sara Golemon <pollita@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.99.2.12.2.8 2007/02/27 03:28:16 iliaa Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.99.2.12.2.9 2007/04/23 16:37:28 bjori Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -138,6 +138,7 @@
if (strpbrk(mode, "awx+")) {
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "HTTP wrapper does not support
writeable connections.");
+ php_url_free(resource);
return NULL;
}