- Back to Home »
- Memory Leak detection using valgrind
Posted by : Sushanth
Monday, 14 December 2015
Purpose:
Find memory
leaks and
invalid Memory Use
Tools:
Valgrind
Syntax:
–valgrind --leak-check=full --verbose
--show-reachable=yes --track-origins=yes --log-file=<Filename>
–v <Command>
Procedure
:
–Step1: Compile in debug mode(use options –g –p)
–Step2: Valgrind command
- Step3
: Report