]> granicus.if.org Git - php/commitdiff
MFH: Plug leak when trying to write via the http wrapper
authorHannes Magnusson <bjori@php.net>
Mon, 23 Apr 2007 16:37:28 +0000 (16:37 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 23 Apr 2007 16:37:28 +0000 (16:37 +0000)
ext/standard/http_fopen_wrapper.c

index 5ca17c9ed7b52d27cc91effac347f903097cf9ec..25aabab7bebd26aa08b5500ca5d45d1bbb37e37d 100644 (file)
@@ -138,6 +138,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
        
                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;
                }