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 fea33566c7340c90010e19ca4e7ffc0dbaf68e13..2f2b08a61fbfe396ec59b3559abcab35fc317489 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,6 @@ SPLINTFLAGS =            \
     -nullstate           \
     -varuse              \
     -mustfreefresh       \
-    -compdestroy         \
     -compmempass         \
     -nullpass            \
     -onlytrans           \
index 6d0c0101587c1c83b498f3ae5c863ab41cfa059d..a9fa3f63c6488766eae2227a8adbbaabdb10e81b 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;
             }
         }