fix memory leak on failures while loading geometry
Merge pull request #26 from severtsev/master

fix memory leak on failures while loading geometry