Detecting Memory Leaks (leak: + ive)

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 …

make – GNU make utility to maintain groups of programs

A UNIX Command $make gcc -g -O2 -lcairo -I/usr/include/cairo/ -L/usr/lib/ `pkg \ -config –cflags –libs gtk+-2.0 gthread-2.0` – \ DVERSION=\”0.0.1\” language.c -o language $ $ls autom4te.cache config.status configure.in CVS language Makefile TODO config.log configure COPYING Documentation language.c Makefile.in $ Sample Makefile Contents CC = gcc VERSION = 0.0.1 CFLAGS = -g -O2 -lcairo -I/usr/include/cairo/ -L/usr/lib/ …