]> granicus.if.org Git - php/commitdiff
- Fixed memleak in stream_is_local()
authorFelipe Pena <felipe@php.net>
Wed, 29 Jul 2009 19:09:17 +0000 (19:09 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 29 Jul 2009 19:09:17 +0000 (19:09 +0000)
NEWS
ext/standard/streamsfuncs.c

diff --git a/NEWS b/NEWS
index a4691ee77012585ea476da8c01b60e76f30c1da7..c0e57cc47642cda92dbc23f2078bbd3f15266269 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP                                                                        NEWS
 ?? ??? 2009, PHP 5.2.11
 - Fixed regression in cURL extension that prevented flush of data to output
   defined as a file handle. (Ilia)
+- Fixed memory leak in stream_is_local(). (Felipe)
 
 - Fixed bug #49052 (context option headers freed too early when using
   --with-curlwrappers). (Jani)
index 43182c80304bb24bf9d74db9205cafb61e923916..0d2a82f505eb7ebc401569ae5e65aa9c051f5040 100644 (file)
@@ -1399,6 +1399,7 @@ PHP_FUNCTION(stream_is_local)
        } else {
                convert_to_string_ex(&zstream);
                wrapper = php_stream_locate_url_wrapper(Z_STRVAL_P(zstream), NULL, 0 TSRMLS_CC);
+               zval_ptr_dtor(&zstream);
        }
 
        if(!wrapper) {