Running Valgrind
suggest changevalgrind ./my-program arg1 arg2 < test-input
This runs the program and reports allocations and deallocations. It also warns about common errors such as using uninitialized memory, dereferencing invalid pointers, writing past the end of a malloc block, or failing to free a block. Compile with debug information if you want source locations in the report.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents