mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 12:31:07 +00:00
Before we exit, explicitly call t_fcloseall() and make stdout
unbuffered to reduce noise in the malloc() statistics.
This commit is contained in:
parent
bf087fd70e
commit
277201a4bb
1 changed files with 3 additions and 1 deletions
|
@ -201,13 +201,15 @@ main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
/* clean up and exit */
|
||||
/* clean up as much as possible before we exit */
|
||||
t_cleanup();
|
||||
t_fcloseall();
|
||||
for (n = 0; n < t_plan_len; ++n) {
|
||||
free(t_plan[n]->desc);
|
||||
free(t_plan[n]);
|
||||
}
|
||||
free(t_plan);
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
if (verbose)
|
||||
t_malloc_printstats(stderr);
|
||||
exit(fail > 0 ? 1 : 0);
|
||||
|
|
Loading…
Reference in a new issue