I usually use this:
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode
But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option?
I usually use this:
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode
But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option?
SVN valgrind has --track-origins=yes, which actually makes uninitialized value warnings useful.