]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
Fixing propogate->propAgate typo in test.c
[xonotic/gmqcc.git] / parser.c
index b9d70065004c01f7e2220696bfd37090a2093d48..5e2b160b6b8c5de50267bb2ac53cc75de6458506 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2299,7 +2299,7 @@ static bool parse_block_into(parser_t *parser, ast_block *block, bool warnreturn
 
     while (parser->tok != TOKEN_EOF && parser->tok < TOKEN_ERROR)
     {
-        ast_expression *expr;
+        ast_expression *expr = NULL;
         if (parser->tok == '}')
             break;
 
@@ -4105,6 +4105,7 @@ void parser_cleanup()
         util_htdel(parser->variables[i]);
     vec_free(parser->variables);
     vec_free(parser->_blocklocals);
+    vec_free(parser->_locals);
 
     for (i = 0; i < vec_size(parser->_typedefs); ++i)
         ast_delete(parser->_typedefs[i]);