diff options
| author | Hannes Magnusson <bjori@php.net> | 2007-04-23 16:37:28 +0000 |
|---|---|---|
| committer | Hannes Magnusson <bjori@php.net> | 2007-04-23 16:37:28 +0000 |
| commit | 5eb00375844da08ac2b00770f04a06e5c7a4c9b7 (patch) | |
| tree | 02e166c68062ecbbda8bc5c7feab26436e5b8b8b /ext/standard/http_fopen_wrapper.c | |
| parent | 0e9abe13d1fd0db4307ae376a161d2c5df6bfeb9 (diff) | |
| download | php-git-5eb00375844da08ac2b00770f04a06e5c7a4c9b7.tar.gz | |
MFH: Plug leak when trying to write via the http wrapper
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
| -rw-r--r-- | ext/standard/http_fopen_wrapper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 5ca17c9ed7..25aabab7be 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -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; } |
