isolating memory leak