fix memory leak on failures while loading geometry

Still noisy, probably automatic memory cleanup is preferred.