summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-03-19 17:25:19 +0400
committerDmitry Stogov <dmitry@zend.com>2014-03-19 17:25:19 +0400
commit9385ddaff9ec9ce3b5489fc79049bb8aff19aec0 (patch)
tree3588cf1bff1a360d51817144469b659f770b8e5e
parent76cd829efd565ad09005fe863b6e6d4631a77c86 (diff)
downloadphp-git-9385ddaff9ec9ce3b5489fc79049bb8aff19aec0.tar.gz
GC related fix
-rw-r--r--Zend/zend_gc.c2
1 files changed, 2 insertions, 0 deletions
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);