[sr-dev] How to catch a mem leak