From: Dmitry Stogov Date: Tue, 30 Aug 2005 07:19:59 +0000 (+0000) Subject: Fixed possible memory leak X-Git-Tag: PRE_NEW_OCI8_EXTENSION~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93c08f1c8b8be82740b430dac496a9a48a4708bc;p=php Fixed possible memory leak --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 897a3ec1e4..05d2f989a8 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -3480,6 +3480,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 897a3ec1e4..05d2f989a8 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3480,6 +3480,7 @@ ZEND_METHOD(reflection_property, getValue) *return_value= **member; zval_copy_ctor(return_value); + INIT_PZVAL(return_value); } /* }}} */