mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Fixed memory leak (Zend/tests/list_003.phpt)
This commit is contained in:
parent
26b2b27a25
commit
7fba7209e1
@ -2821,6 +2821,10 @@ static void zend_compile_list_assign(
|
||||
zend_bool is_keyed =
|
||||
list->children > 0 && list->child[0] != NULL && list->child[0]->child[1] != NULL;
|
||||
|
||||
if (list->children && expr_node->op_type == IS_CONST && Z_TYPE(expr_node->u.constant) == IS_STRING) {
|
||||
zval_make_interned_string(&expr_node->u.constant);
|
||||
}
|
||||
|
||||
for (i = 0; i < list->children; ++i) {
|
||||
zend_ast *elem_ast = list->child[i];
|
||||
zend_ast *var_ast, *key_ast;
|
||||
|
Loading…
Reference in New Issue
Block a user