Skip to content
SaeHie Park edited this page Jan 4, 2018 · 1 revision

Memory leak

Add to code before program exists or where to check

#include <valgrind/memcheck.h>
...
VALGRIND_DO_LEAK_CHECK;

And run

valgrind --leak-check=full --show-reachable=yes ./myprogram
Clone this wiki locally