at last, the annoying missing ast_delete(typevar)

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-21 11:21:05 +02:00
parent d7f43dfa4d
commit 22896e5ef6

View file

@ -2449,8 +2449,10 @@ nextvar:
return false;
}
if (parser->tok == ';')
if (parser->tok == ';') {
ast_value_delete(typevar);
return parser_next(parser) || parser->tok == TOKEN_EOF;
}
else if (opts_standard == COMPILER_QCC)
parseerror(parser, "missing semicolon after function body (mandatory with -std=qcc)");
ast_value_delete(typevar);