mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-20 01:44:17 +00:00
fix a leak on a parse-error
This commit is contained in:
parent
655822ec1a
commit
d85e86141c
1 changed files with 1 additions and 0 deletions
1
parser.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue