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 <[EMAIL PROTECTED]>                              |
    +----------------------------------------------------------------------+
  */
-/* $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;
                }
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to