I am using ubuntu 10.04 and i have a program a.c. Background on valgrind valgrind is a useful tool to detect memory errors and memory leaks If you normally run your program like this
Good data structure experiments are r.a.r.e. - ppt download
Myprog arg1 arg2 use this command line
Your program will run much slower (eg
20 to 30 times) than normal, and use a lot more memory Memcheck will issue messages about memory errors and leaks that it detects. It is the most common and popular method for finding memory leaks in c C program to detect memory leaks using valgrind the below example demonstrates a simple program that causes a memory leak, and how we can detect it using valgrind.
Improve your c/c++ programming skills and create more stable applications Use helgrind for detecting threading errors