From: Wolfgang (Blub) Bumiller Date: Tue, 21 Aug 2012 09:21:05 +0000 (+0200) Subject: at last, the annoying missing ast_delete(typevar) X-Git-Tag: 0.1-rc1~123 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22896e5ef62680d5442971b219a8146ed98ac7c8;p=xonotic%2Fgmqcc.git at last, the annoying missing ast_delete(typevar) --- diff --git a/parser.c b/parser.c index a3241c8..ea1e24d 100644 --- a/parser.c +++ b/parser.c @@ -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);