Really useful information I got to find the leaks in native code.

  1. add native=true in ~/.android/ddms.cfg
  2. replace /system/lib/libc.so with /system/lib/libc_debug.so
    restart the framework, start DDMS, you'll see a tab native-heap

In native-heap, you can see the allocations by native code.

For more information click here