fix a leak on a parse-error

This commit is contained in:
Wolfgang Bumiller 2013-06-01 22:25:58 +02:00
parent 655822ec1a
commit d85e86141c

View file

@ -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;
}