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

This fixes commit 8eb92e6052

Remove memory leak.
master
grischka 2013-01-06 17:21:33 +01:00
parent 2358b378b3
commit 0a8c7d143e
1 changed files with 1 additions and 1 deletions

View File

@ -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)