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:
Wolfgang Bumiller 2013-01-09 19:12:27 +01:00
parent 9eefe90d78
commit be6942d972

View file

@ -1649,6 +1649,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
break;
} else if (correct) {
mem_d(correct);
correct = NULL;
}
}