How to detect memory leak in c program using valgrind?
Installing valgrind on ubuntu linux
Please follow the below simple command to install valgrind, the memory leak checker in linux:
~$ sudo apt-get install valgrind
This should install valgrind on your ubuntu linux without any pain.
Checking memory leak with valgrind
Linked Listis a linked list implementation in C and we will use it as an example source code to be run with valgrind. This program
View On WordPress













