From 37f824c02ae43a713c358acb7feac9998ee97d24 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 28 Nov 2003 00:00:34 +0000 Subject: [PATCH] MFH: Fixed a memory leak. --- main/streams.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0