atexit
extern int atexit(void (*func)(void));
atexit(DebugMalloc);
if(atexit(__glutExitCleanup))
if (DO_STATS && (atexit(malloc_exit) == -1)) {
atexit(on_exit);