mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Fixed possible memory leak.
This commit is contained in:
parent
d8b75b0807
commit
bc49f8b438
1 changed files with 4 additions and 0 deletions
|
@ -3798,6 +3798,10 @@ void zend_compile_global_var(zend_ast *ast) /* {{{ */
|
||||||
zend_op *opline = zend_emit_op(&result, ZEND_FETCH_W, &name_node, NULL);
|
zend_op *opline = zend_emit_op(&result, ZEND_FETCH_W, &name_node, NULL);
|
||||||
opline->extended_value = ZEND_FETCH_GLOBAL_LOCK;
|
opline->extended_value = ZEND_FETCH_GLOBAL_LOCK;
|
||||||
|
|
||||||
|
if (name_node.op_type == IS_CONST) {
|
||||||
|
zend_string_addref(Z_STR(name_node.u.constant));
|
||||||
|
}
|
||||||
|
|
||||||
zend_emit_assign_ref_znode(
|
zend_emit_assign_ref_znode(
|
||||||
zend_ast_create(ZEND_AST_VAR, zend_ast_create_znode(&name_node)),
|
zend_ast_create(ZEND_AST_VAR, zend_ast_create_znode(&name_node)),
|
||||||
&result
|
&result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue