#include <oskit/memdebug.h>void memdebug_check(void);
This functions walks the list of all allocated blocks and for each block that is not marked (by memdebug_mark, it prints a bogosity dump.For example, at the beginning of a server loop call memdebug_mark, then when the server loop is about to iterate, call memdebug_check to make sure that the loop didn't leave any allocated objects lying about.
memdebug_bogosity, memdebug_mark