added support for watching memory leaks