From: Dmitry Stogov Date: Tue, 30 Aug 2005 07:22:23 +0000 (+0000) Subject: Fixed possible memory leak X-Git-Tag: php-5.1.0RC2_PRE~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7230be4951394801660e90f2c9e682bea03b8c8f;p=php Fixed possible memory leak --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 89ed94e8a1..e741f96cf1 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -3449,6 +3449,7 @@ ZEND_METHOD(reflection_property, getValue) *return_value= **member; zval_copy_ctor(return_value); + INIT_PZVAL(return_value); } /* }}} */ diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 89ed94e8a1..e741f96cf1 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3449,6 +3449,7 @@ ZEND_METHOD(reflection_property, getValue) *return_value= **member; zval_copy_ctor(return_value); + INIT_PZVAL(return_value); } /* }}} */