tccpp: free defines also with PP_BENCH

When benchmarking preprocessing of multiple files we need to
free the defines like when not benchmarking.
This commit is contained in:
Michael Matz
2016-12-15 17:47:05 +01:00
parent e2f489aaff
commit 8080401ab0
+3 -1
View File
@@ -3709,7 +3709,9 @@ ST_FUNC int tcc_preprocess(TCCState *s1)
#ifdef PP_BENCH #ifdef PP_BENCH
/* for PP benchmarks */ /* for PP benchmarks */
do next(); while (tok != TOK_EOF); return 0; do next(); while (tok != TOK_EOF);
free_defines(define_start);
return 0;
#endif #endif
if (s1->dflag & 1) { if (s1->dflag & 1) {