From 0a8c7d143eb0dcae15db9b61feb7b93228645d5f Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 6 Jan 2013 17:21:33 +0100 Subject: [PATCH] Fix "Optimize cstr_reset() to only reset string to empty" This fixes commit 8eb92e605200b1fe8d570ad309e28245c3f1af0a Remove memory leak. --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index 05098e18..c0c7aecc 100644 --- a/tccpp.c +++ b/tccpp.c @@ -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) -- 2.11.4.GIT