]> granicus.if.org Git - php/commitdiff
MFB: plug a leak
authorAntony Dovgal <tony2001@php.net>
Tue, 6 Jun 2006 20:12:46 +0000 (20:12 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 6 Jun 2006 20:12:46 +0000 (20:12 +0000)
ext/spl/spl_iterators.c

index f2368133b0aca9eaa0d501fae90fe68cb9fd80c3..4abfe7806f8a98a13ef60355bb37063f53bd52d3 100755 (executable)
@@ -1785,6 +1785,7 @@ static inline void spl_caching_it_next(spl_dual_it_object *intern TSRMLS_DC)
                                                if (intern->u.caching.flags & CIT_CATCH_GET_CHILD) {
                                                        zend_clear_exception(TSRMLS_C);
                                                } else {
+                                                       zval_ptr_dtor(&retval);
                                                        return;
                                                }
                                        } else {