From 8080401ab00aea30a1df70e36b55d3ff745d00c8 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 18 May 2016 20:30:09 +0200 Subject: [PATCH] tccpp: free defines also with PP_BENCH When benchmarking preprocessing of multiple files we need to free the defines like when not benchmarking. --- tccpp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {