From 9385ddaff9ec9ce3b5489fc79049bb8aff19aec0 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 19 Mar 2014 17:25:19 +0400 Subject: GC related fix --- Zend/zend_gc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c index 57f9455fd1..825facabbb 100644 --- a/Zend/zend_gc.c +++ b/Zend/zend_gc.c @@ -689,6 +689,7 @@ ZEND_API int gc_collect_cycles(TSRMLS_D) arr->gc.u.v.type = IS_NULL; zend_hash_destroy(&arr->ht); + GC_REMOVE_FROM_BUFFER(arr); efree(arr); } else if (p->u.v.type == IS_REFERENCE) { zend_reference *ref = (zend_reference*)p; @@ -698,6 +699,7 @@ ZEND_API int gc_collect_cycles(TSRMLS_D) Z_TYPE(ref->val) != IS_OBJECT) { zval_dtor(&ref->val); } + GC_REMOVE_FROM_BUFFER(ref); efree(ref); } else { //??? zval_dtor(&p->z); -- cgit v1.2.1