Understanding Valgrind memory leak reports
I tried to write a tutorial focusing on the type of memory leaks as detected internally by Valgrind and the generated output leak reports.
The PDF is available in the following URL:
http://es.gnu.org/~aleksander/valgrind/valgrind-memcheck.pdf
And the simple C tester to generate each type of memory leak (cases 1 to 9 in the Valgrind Manual) is available here:
http://es.gnu.org/~aleksander/valgrind/valgrind-memcheck.c
Comments, fixes, whatever… highly appreciated. You could even send me a diff file to the original LaTeX source, available in:
http://es.gnu.org/~aleksander/valgrind/valgrind-memcheck.tex
The document is licensed under the GFDL 1.3, and the tester is published in the public domain.
Posted on February 4, 2010, in Development, Writting and tagged c, gnu/linux, valgrind. Bookmark the permalink. 1 Comment.
Reblogged this on Shogun Developer.