From: Ilia Alshanetsky Date: Fri, 28 Nov 2003 00:00:34 +0000 (+0000) Subject: MFH: Fixed a memory leak. X-Git-Tag: php-4.3.5RC1~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37f824c02ae43a713c358acb7feac9998ee97d24;p=php MFH: Fixed a memory leak. --- diff --git a/main/streams.c b/main/streams.c index 4903d6e9e4..636b92f7cf 100755 --- a/main/streams.c +++ b/main/streams.c @@ -2882,9 +2882,9 @@ PHPAPI int php_stream_context_set_option(php_stream_context *context, ALLOC_INIT_ZVAL(copied_val); *copied_val = *optionvalue; zval_copy_ctor(copied_val); - + INIT_PZVAL(copied_val); + if (FAILURE == zend_hash_find(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&wrapperhash)) { - MAKE_STD_ZVAL(category); array_init(category);