We write a shared library(say slib.so) which is dlopen'ed, used and dlclose'd in a never-ending executable. I want to check for memory leaks in the library slib.so without attaching the executable.
Is there any tool in Linux to find out the memory leaks in a shared library? So I need a tool which monitors the heap between dlopen and dlclose and report the issues after dlclose.