close finfo. fix memory leak