memory leak detection
Merge pull request #1353 from grosser/grosser/leak

memory leak detection