forked from Mirrors/tinycc
tccpp: free defines also with PP_BENCH
When benchmarking preprocessing of multiple files we need to free the defines like when not benchmarking.master
parent
e2f489aaff
commit
8080401ab0
4
tccpp.c
4
tccpp.c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue