Find memory leaks in Objective C for iPhone

Yesterday i came across this and thought i must write about an easy way of finding trivial mem leaks.

This article describe how you find memory leaks. You just even need no Instruments. We are using hereĀ  http://clang.llvm.org/StaticAnalysis.html

Just download the mem leaks analyzer: It's namedĀ checker-0.xxx.tar.bz2 where xxx is the actual version.

Just untar it to your home dir. Then go to your project directory and write in the Terminal:

../checker-0.161/scan-build -V -analyze-headers xcodebuild

This will analyze your code and start an Browser with informations about mem leaks it finds. Just try it ! It doesn't change anything on your code or project.

Happy mem leak hunting :)