From: Felipe Pena Date: Wed, 29 Jul 2009 19:09:17 +0000 (+0000) Subject: - Fixed memleak in stream_is_local() X-Git-Tag: php-5.2.11RC1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=628d1d59d7930f263d3a9997af29f961657d8628;p=php - Fixed memleak in stream_is_local() --- diff --git a/NEWS b/NEWS index a4691ee770..c0e57cc476 100644 --- 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) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 43182c8030..0d2a82f505 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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) {