]> granicus.if.org Git - php/commitdiff
Correct destruction
authorMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:36:41 +0000 (00:36 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:36:41 +0000 (00:36 +0000)
Zend/zend_interfaces.c

index aa857af396c37f00712d6d39d710795e4b48ab07..d3d9f773bcb14df8890c3341c77511d268e537e8 100755 (executable)
@@ -86,8 +86,7 @@ ZEND_API zval* zend_call_method(zval **object_pp, zend_class_entry *obj_ce, zend
        }
        if (!retval_ptr_ptr) {
                if (retval) {
-                       zval_dtor(retval);
-                       FREE_ZVAL(retval);
+                       zval_ptr_dtor(&retval);
                }
                return NULL;
        }