mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed memory leak
This commit is contained in:
parent
9806a62545
commit
cddb5eb3e9
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue