aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-05-18 20:30:09 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:05 +0100
commit8080401ab00aea30a1df70e36b55d3ff745d00c8 (patch)
treebca056b5c504868f39bcb99fd41ec9fb4f6e8d36
parente2f489aaffdc5806a993a04c121a5b75ac08daaf (diff)
downloadtinycc-8080401ab00aea30a1df70e36b55d3ff745d00c8.tar.gz
tinycc-8080401ab00aea30a1df70e36b55d3ff745d00c8.tar.bz2
tccpp: free defines also with PP_BENCH
When benchmarking preprocessing of multiple files we need to free the defines like when not benchmarking.
-rw-r--r--tccpp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tccpp.c b/tccpp.c
index d2b8e96..ebbd051 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -3709,7 +3709,9 @@ ST_FUNC int tcc_preprocess(TCCState *s1)
#ifdef PP_BENCH
/* for PP benchmarks */
- do next(); while (tok != TOK_EOF); return 0;
+ do next(); while (tok != TOK_EOF);
+ free_defines(define_start);
+ return 0;
#endif
if (s1->dflag & 1) {