Fixed memory leak

This commit is contained in:
Dmitry Stogov 2015-04-14 00:57:45 +03:00
parent 9806a62545
commit cddb5eb3e9
2 changed files with 1 additions and 3 deletions

View file

@ -200,7 +200,7 @@ static zend_always_inline void zend_vm_stack_free_extra_args(zend_execute_data *
zval *p = end + (ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args);
do {
p--;
zval_ptr_dtor_nogc(p);
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
} while (p != end);
}
}

View file

@ -1,7 +1,5 @@
--TEST--
Memleaks if unserialize return a self-referenced array/object
--XFAIL--
To fix this, we need change zval_ptr_dtor_nogc to zval_ptr_dtor in free_args, but it will introduce slowdown. mark this XFAIL now. we may find better fix later.
--INI--
report_memleaks=1
--FILE--