Tool for finding memory leaks

hi, i am a c++ programmer working on linux(redhat linux8.0) environment, i need to find out the memory leaks, so far i didn't used any tools, so what are the tools are available, and whic one is good to use. plz provide with a small example.

Electric Fence and Valgrind are two Open Source tools that work very well, especially since they both find stuff the other one overlooks.

This doesn't involve coding - you compile

gcc -g -Wall myfile.c -lefence -o myfile

to bring in electric fence.
then optinally run the code "under"

valgrind filename

You have to interpret where your leaks originate.

http://www.llnl.gov/icc/lc/DEG/valgrind/

http://www.parl.clemson.edu/~wjones/summerStudents/memoryDebugging/pres.pdf