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
37093709
37103710 #ifdef PP_BENCH
37113711 /* 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;
37133715 #endif
37143716
37153717 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