1
0
forked from GitHub/gf-core

fix a space leak

This commit is contained in:
Krasimir Angelov
2022-10-07 23:30:26 +02:00
parent b39f481316
commit 35d6a12074

View File

@@ -855,11 +855,15 @@ error:
token_tag != PGF_TOKEN_COMMA &&
token_tag != PGF_TOKEN_SEMI &&
token_tag != PGF_TOKEN_UNKNOWN) {
PgfExpr fun = expr;
PgfExpr arg = parse_arg();
if (arg == 0)
return expr;
expr = u->eapp(expr, arg);
expr = u->eapp(fun, arg);
u->free_ref(fun);
u->free_ref(arg);
}
return expr;