Adding global leak checking
Merge pull request #28 from wpreul/master

Adding global leak checking