mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 13:48:11 +08:00
removed memory leak
This commit is contained in:
parent
a47f40cde8
commit
399d916e66
@ -24236,8 +24236,10 @@ static __exception int js_parse_postfix_expr(JSParseState *s, int parse_flags)
|
||||
return -1;
|
||||
}
|
||||
name = JS_DupAtom(s->ctx, s->token.u.ident.atom);
|
||||
if (next_token(s)) /* update line number before emitting code */
|
||||
if (next_token(s)) { /* update line number before emitting code */
|
||||
JS_FreeAtom(s->ctx, name);
|
||||
return -1;
|
||||
}
|
||||
do_get_var:
|
||||
emit_op(s, OP_scope_get_var);
|
||||
emit_u32(s, name);
|
||||
|
Loading…
Reference in New Issue
Block a user