http://developer.android.com/tools/sdk/ndk/index.html
As the above link suggests, android ndk r8e :
Added static code analyzer for Linux/MacOSX hosts. For information on using the analyzer, see CHANGES.HTML.
In CHANGES.HTML:
- Added static code analyzer for Linux/MacOSX hosts
- For ndk-build, either export NDK_ANALYZE=1 or add it to the command-line.
- For standalone, please refer to ndk-build for example to run scan-build using /path/to/standalone/bin//analyzer.
I added the ndk-build NDK_ANALYZE=1 to build command and it builds fine. But how exactly can I use the analyzer to detect memory problems? I didn' t find any documentation.