From: Antony Dovgal Date: Mon, 3 Aug 2009 08:45:28 +0000 (+0000) Subject: revert bogus memleak fix causing Valgrind to scream X-Git-Tag: php-5.2.11RC1~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b691c3457931bb82c7f433a07f7d7d807289440a;p=php revert bogus memleak fix causing Valgrind to scream --- diff --git a/NEWS b/NEWS index 6fd92f5fdd..9aaa0c411b 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,6 @@ 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 #49132 (posix_times returns false without error). (phpbugs at gunnu dot us) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 0d2a82f505..43182c8030 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -1399,7 +1399,6 @@ 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) {