From: Marcus Boerger Date: Sun, 28 Mar 2004 13:55:06 +0000 (+0000) Subject: Fix memleak found by Timm X-Git-Tag: php-5.0.0RC2RC1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83675b66223ba98987f3067052be6d06fffdea14;p=php Fix memleak found by Timm --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 97b71d5059..5fb2aa9a4a 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -2702,8 +2702,6 @@ ZEND_METHOD(reflection_property, getModifiers) METHOD_NOTSTATIC_NUMPARAMS(0); GET_REFLECTION_OBJECT_PTR(ref); - array_init(return_value); - RETURN_LONG(ref->prop->flags); } /* }}} */ diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 97b71d5059..5fb2aa9a4a 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2702,8 +2702,6 @@ ZEND_METHOD(reflection_property, getModifiers) METHOD_NOTSTATIC_NUMPARAMS(0); GET_REFLECTION_OBJECT_PTR(ref); - array_init(return_value); - RETURN_LONG(ref->prop->flags); } /* }}} */