]> granicus.if.org Git - php/commitdiff
Fix memleak found by Timm
authorMarcus Boerger <helly@php.net>
Sun, 28 Mar 2004 13:55:06 +0000 (13:55 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 28 Mar 2004 13:55:06 +0000 (13:55 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 97b71d505912fa3a93ed9c610c32f3c6409391c3..5fb2aa9a4ad32e74cdd64393851386466056bef3 100644 (file)
@@ -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);
 }
 /* }}} */
index 97b71d505912fa3a93ed9c610c32f3c6409391c3..5fb2aa9a4ad32e74cdd64393851386466056bef3 100644 (file)
@@ -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);
 }
 /* }}} */