summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-08 02:48:31 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-08 02:48:31 +0400
commitfa7008bb247240556b6bd5950576d3f455621f82 (patch)
tree471d2a9d3a6c0c5089ac71353c86e418bf194bef /Zend/zend_variables.c
parent223df9ceea08a9b186f320114e40914552f48716 (diff)
downloadphp-git-fa7008bb247240556b6bd5950576d3f455621f82.tar.gz
Fixed resource destruction
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r--Zend/zend_variables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index fcb0dd1b3e..ccdef2246c 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -70,7 +70,7 @@ ZEND_API void _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC)
if (--GC_REFCOUNT(res) == 0) {
/* destroy resource */
- zend_list_delete(res);
+ zend_list_free(res);
}
break;
}
@@ -129,7 +129,7 @@ ZEND_API void _zval_dtor_func_for_ptr(zend_refcounted *p ZEND_FILE_LINE_DC)
TSRMLS_FETCH();
/* destroy resource */
- zend_list_delete(res);
+ zend_list_free(res);
break;
}
case IS_REFERENCE: {