Fix memory leak
Merge pull request #7 from sboisson/master

Fix memory leak