From d85e86141c3599004564475a6788db359d693be7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 1 Jun 2013 22:25:58 +0200 Subject: [PATCH] fix a leak on a parse-error --- parser.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2