From: Wolfgang Bumiller Date: Sat, 1 Jun 2013 20:25:58 +0000 (+0200) Subject: fix a leak on a parse-error X-Git-Tag: v0.3.0~151^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d85e86141c3599004564475a6788db359d693be7;p=xonotic%2Fgmqcc.git fix a leak on a parse-error --- diff --git a/parser.c b/parser.c index 14d58b6..bedef2b 100644 --- a/parser.c +++ b/parser.c @@ -4793,6 +4793,7 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var) /* for the sake of less code we parse-in in this function */ if (!parser_next(parser)) { + ast_delete(var); parseerror(parser, "expected parameter list"); return NULL; }