Coverity scan 1223777, don't leak the FILE handle if we have an error return.