How to run Valgrind on my program in C? -


how use valgrind utility simple c program in linux?

suppose executable a.out. how check leaks in program valgrind.

i want know how use valgrind.

it simple as:

$ valgrind ./a.out 

if a.out in current working directory.

in case have got valgrind installed can learn usage running:

$ valgrind --help.  

unfortunately, there no entry manual entry valgrind when running man valgrind.


Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

c++ - Visible files in the "Projects" View of the Qt Creator IDE if using the CMake build system -