When benchmarking preprocessing of multiple files we need to free the defines like when not benchmarking.
Unified · Split
| @@ -3709,7 +3709,9 @@ ST_FUNC int tcc_preprocess(TCCState *s1) · 3708 unmodified lines | ||
| 3709 | 3709 | |
| 3710 | 3710 | #ifdef PP_BENCH |
| 3711 | 3711 | /* for PP benchmarks */ |
| 3712 | − do next(); while (tok != TOK_EOF); return 0; | |
| 3712 | + do next(); while (tok != TOK_EOF); | |
| 3713 | + free_defines(define_start); | |
| 3714 | + return 0; | |
| 3713 | 3715 | #endif |
| 3714 | 3716 | |
| 3715 | 3717 | if (s1->dflag & 1) { |