diff options
| author | grischka <grischka> | 2013-01-06 17:21:33 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-01-06 17:21:33 +0100 |
| commit | 0a8c7d143eb0dcae15db9b61feb7b93228645d5f (patch) | |
| tree | 336d08380f05c186dd5076605459f1ffa53ba878 /tccpp.c | |
| parent | 2358b378b3cd526956713f033f5a0ecaa5f63951 (diff) | |
| download | tinycc-0a8c7d143eb0dcae15db9b61feb7b93228645d5f.tar.gz tinycc-0a8c7d143eb0dcae15db9b61feb7b93228645d5f.tar.bz2 | |
Fix "Optimize cstr_reset() to only reset string to empty"
This fixes commit 8eb92e605200b1fe8d570ad309e28245c3f1af0a
Remove memory leak.
Diffstat (limited to 'tccpp.c')
| -rw-r--r-- | tccpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2857,7 +2857,7 @@ static inline int *macro_twosharps(const int *macro_str) n, cstr.data, (char*)cstr.data + n); } tcc_close(); - cstr_reset(&cstr); + cstr_free(&cstr); } } if (tok != TOK_NOSUBST) |
