summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 9e297ce8a2..872f1f6ecf 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -123,7 +123,7 @@ ZEND_API void zend_function_dtor(zval *zv)
if (function->type == ZEND_INTERNAL_FUNCTION) {
pefree(function, 1);
} else if (!function->common.function_name) {
- efree(function);
+ efree_size(function, sizeof(zend_op_array));
}
}
@@ -330,7 +330,7 @@ ZEND_API void destroy_op_array(zend_op_array *op_array TSRMLS_DC)
return;
}
- efree(op_array->refcount);
+ efree_size(op_array->refcount, sizeof(*(op_array->refcount)));
if (op_array->vars) {
i = op_array->last_var;