Created
November 15, 2015 04:32
-
-
Save smamran/5add14efa34b58faf6f3 to your computer and use it in GitHub Desktop.
Valgrind Memory Leak Checker in C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########## Install Valgrind ################## | |
| wget http://www.valgrind.org/downloads/valgrind-3.11.0.tar.bz2 | |
| bzip2 -d valgrind-3.11.0.tar.bz2 | |
| tar -xf valgrind-3.11.0.tar | |
| cd valgrind-3.11.0 | |
| ./configure | |
| sudo make | |
| sudo make install | |
| ########## Memory Check ################## | |
| valgrind --tool=memcheck --leak-check=yes ./mempro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment