removed memory leak
This commit is contained in:
parent
a47f40cde8
commit
399d916e66
1 changed files with 3 additions and 1 deletions
|
@ -24236,8 +24236,10 @@ static __exception int js_parse_postfix_expr(JSParseState *s, int parse_flags)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
name = JS_DupAtom(s->ctx, s->token.u.ident.atom);
|
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;
|
return -1;
|
||||||
|
}
|
||||||
do_get_var:
|
do_get_var:
|
||||||
emit_op(s, OP_scope_get_var);
|
emit_op(s, OP_scope_get_var);
|
||||||
emit_u32(s, name);
|
emit_u32(s, name);
|
||||||
|
|
Loading…
Reference in a new issue