Merge pull request #7 from rgngl/master

Fixed small memory leak