How to detect memory leaks


Refer to kmemleak article for Linux kernel space and to valgrind article for Linux user space.