]> granicus.if.org Git - php/commitdiff
Add missing dtor call.
authorMarcus Boerger <helly@php.net>
Tue, 9 Dec 2003 19:03:38 +0000 (19:03 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 9 Dec 2003 19:03:38 +0000 (19:03 +0000)
ext/spl/spl_iterators.c

index 737b1947946ee4aec309ea8c3cbc6a7763548175..28903bc795af333a37d7d55889d10e8d64139b26 100755 (executable)
@@ -230,6 +230,7 @@ next_step:
                                zend_call_method_with_0_params(&zobject, ce, NULL, "getchildren", &child);
                                ce = Z_OBJCE_P(child);
                                if (!ce || !instanceof_function(ce, spl_ce_RecursiveIterator TSRMLS_CC)) {
+                                       zval_ptr_dtor(&child);
                                        zend_throw_exception(zend_exception_get_default(), "Objects returned by RecursiveIterator::getChildren() must implement RecursiveIterator", 0 TSRMLS_CC);
                                        return;
                                }