From: Ilia Alshanetsky Date: Fri, 28 Nov 2003 18:33:14 +0000 (+0000) Subject: More memory leak fixes for stream contexts. X-Git-Tag: php-5.0.0b3RC1~557 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1bdc33d184395cd98754437df3a4fa9aa7abae0;p=php More memory leak fixes for stream contexts. --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 0e94f32f51..888efd53db 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -336,6 +336,7 @@ PHP_FUNCTION(stream_get_meta_data) MAKE_STD_ZVAL(newval); *newval = *(stream->wrapperdata); zval_copy_ctor(newval); + INIT_PZVAL(newval); add_assoc_zval(return_value, "wrapper_data", newval); } @@ -784,7 +785,7 @@ PHP_FUNCTION(stream_context_get_options) *return_value = *context->options; zval_copy_ctor(return_value); - + INIT_PZVAL(return_value); } /* }}} */