Fix that memory leak that I spent hours trying to find months ago and didn't succeed at.
authorDale Weiler <killfieldengine@gmail.com>
Wed, 29 May 2013 03:35:51 +0000 (03:35 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 29 May 2013 03:35:51 +0000 (03:35 +0000)
Makefile
parser.c

index fea3356..2f2b08a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,6 @@ SPLINTFLAGS =            \
     -nullstate           \
     -varuse              \
     -mustfreefresh       \
-    -compdestroy         \
     -compmempass         \
     -nullpass            \
     -onlytrans           \
index 6d0c010..a9fa3f6 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5814,6 +5814,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
                 }
                 vec_free(sy.out);
                 vec_free(sy.ops);
+                vec_free(sy.argc);
                 var->cvq = cvq;
             }
         }