Fix a memory leak.
Merge pull request #13 from sintario/hotfix/memory_leak

Fix a memory leak.