Revert "try debug memory leaks"

This reverts commit d7e19b8950a27163fc0e5a146b0fe4b6eeea9799.