I usually use this:
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode
But I'm not sure that, on the one hand, he checks everything, on the other hand, is too verbose. What is your favorite option?
source share