Fix memory leak
Merge pull request #12 from pronebird/master

Fix memory leak