allow to use MEM_DEBUG with libtcc

master
seyko 2015-05-11 18:05:31 +03:00
parent cb7e820eae
commit ae09051c81
2 changed files with 1 additions and 2 deletions

View File

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

2
tcc.c
View File

@ -369,7 +369,5 @@ int main(int argc, char **argv)
}
tcc_delete(s);
if (bench)
tcc_memstats();
return ret;
}