Free allocated memory.
Merge pull request #3 from yulyugin/master

Free allocated memory.