next up previous contents index
Next: 19.3.3 memdebug_ptrchk: Check validity Up: 19.3 Additional Debugging Utilities Previous: 19.3.1 memdebug_mark: Mark all

19.3.2 memdebug_check: Look for blocks allocated since mark that haven't been freed.

 

SYNOPSIS

#include <oskit/memdebug.h>

void memdebug_check(void);

DESCRIPTION

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.

RELATED INFORMATION

memdebug_bogosity, memdebug_mark



University of Utah Flux Research Group