commandline session $gcc -g leak.c $valgrind –tool=memcheck –leak-check=full ./a.out ==4353== Memcheck, a memory error detector ==4353== Copyright (C) 2002-2012, and GNU GPL’d, by Julian Seward et al. ==4353== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==4353== Command: ./a.out ==4353== ==4353== ==4353== HEAP SUMMARY: ==4353== in use at exit: 100 bytes in 1 …