diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index 707cd49dd4..0b19b3ff75 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -545,6 +545,7 @@ func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool) if err != nil { return err } + defer lr.Close() //nolint:errcheck c, err := lr.Config() if err != nil {