]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fixing a crash caused by the correction: setting correct=NULL after freeing so the...
authorWolfgang Bumiller <blub@speed.at>
Wed, 9 Jan 2013 18:12:27 +0000 (19:12 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 9 Jan 2013 18:12:27 +0000 (19:12 +0100)
parser.c

index 4432ed4472fe80d1a88d0b78d08c0086f31babab..6c59d3ca7c73cf555aeae84e6cb1a13064de5439 100644 (file)
--- 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;
                             }
                         }