From ae09051c815e115b3c37abeb9ff4a27832770e9e Mon Sep 17 00:00:00 2001 From: seyko Date: Mon, 11 May 2015 18:05:31 +0300 Subject: [PATCH] allow to use MEM_DEBUG with libtcc --- libtcc.c | 1 + tcc.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libtcc.c b/libtcc.c index dfdf85bc..42e8a438 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1111,6 +1111,7 @@ LIBTCCAPI void tcc_delete(TCCState *s1) tcc_free(s1->sym_attrs); tcc_free(s1); + tcc_memstats(); } LIBTCCAPI int tcc_add_include_path(TCCState *s, const char *pathname) diff --git a/tcc.c b/tcc.c index 29508eb7..7ef927e3 100644 --- a/tcc.c +++ b/tcc.c @@ -369,7 +369,5 @@ int main(int argc, char **argv) } tcc_delete(s); - if (bench) - tcc_memstats(); return ret; }