diff --git a/libtcc.c b/libtcc.c index dfdf85b..42e8a43 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 29508eb..7ef927e 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; }