Fix "Optimize cstr_reset() to only reset string to empty"

This fixes commit 8eb92e6052

Remove memory leak.
This commit is contained in:
grischka
2013-01-06 17:21:33 +01:00
parent 2358b378b3
commit 0a8c7d143e

View File

@ -2857,7 +2857,7 @@ static inline int *macro_twosharps(const int *macro_str)
n, cstr.data, (char*)cstr.data + n); n, cstr.data, (char*)cstr.data + n);
} }
tcc_close(); tcc_close();
cstr_reset(&cstr); cstr_free(&cstr);
} }
} }
if (tok != TOK_NOSUBST) if (tok != TOK_NOSUBST)