Merge pull request #10 from bkargoll/master

Fix memory leak