History

tccpp: free defines also with PP_BENCH

When benchmarking preprocessing of multiple files we need to free the defines like when not benchmarking.

Michael Matz committed 10 years ago

Commit 80804011 parent e2f489a1 file · +3 −1Browse files

Unified · Split

tccpp.c+3−1
@@ -3709,7 +3709,9 @@ ST_FUNC int tcc_preprocess(TCCState *s1) · 3708 unmodified lines
3709 3709
3710#ifdef PP_BENCH3710#ifdef PP_BENCH
3711 /* for PP benchmarks */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#endif3715#endif
3714 3716
3715 if (s1->dflag & 1) {3717 if (s1->dflag & 1) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t