From: Wolfgang Bumiller Date: Wed, 9 Jan 2013 18:12:27 +0000 (+0100) Subject: fixing a crash caused by the correction: setting correct=NULL after freeing so the... X-Git-Tag: before-library~339 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=be6942d972fae1ebb3f77ceadeadeec1b6f8bc43 fixing a crash caused by the correction: setting correct=NULL after freeing so the later if(correct) check properly fails --- diff --git a/parser.c b/parser.c index 4432ed4..6c59d3c 100644 --- a/parser.c +++ b/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; } }