]> 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)
ext/standard/streamsfuncs.c

index 508a95c9b09fa02f057b4707b96c5312774549da..4bedda9e0b42557e337ef96363018bf37529e235 100644 (file)
@@ -1465,6 +1465,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) {