Even a small memory leak is unacceptable.
All LIBPA code must use the memory_create()
and
memory_destroy()
procedures from the memory_t
library
instead of the malloc()
and free()
provided by the
standard stdlib
.
Every test suite must conclude with a memory leak check.
assert(memory_total_bytes() == 0);
assert(memory_total_blocks() == 0);
Go to the first, previous, next, last section, table of contents.