This page has info about coding.
Valgrind is very useful for finding leaks. On a Mac, in can be installed using MacPorts. Syntax for its use for leaks:
valgrind --leak-check=yes --leak-resolution=high --track-origins=yes --dsymutil=yes program programargument1 programargument2 ...
You have to use --dsymutil and compile the original program using -g in order to get line numbers in output. Note that the valgrind must have permission to create a program.dSYM directory wherever the program binary is stored (either run as sudo or (better), move the program binary somewhere like ~/Desktop and give valgrind the path to the ~/Desktop/program.
Google code is used for hosting various projects (rather than Sourceforge or inhouse hosting). It is clean, displays source, allows tracking of downloads and other info, etc.