mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
fixing a crash caused by the correction: setting correct=NULL after freeing so the later if(correct) check properly fails
This commit is contained in:
parent
9eefe90d78
commit
be6942d972
1 changed files with 1 additions and 0 deletions
1
parser.c
1
parser.c
|
@ -1649,6 +1649,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
|
|||
break;
|
||||
} else if (correct) {
|
||||
mem_d(correct);
|
||||
correct = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue