diff --git a/etcdctl/ctlv3/command/snapshot_command.go b/etcdctl/ctlv3/command/snapshot_command.go index 3c59ec70c..02dda0157 100644 --- a/etcdctl/ctlv3/command/snapshot_command.go +++ b/etcdctl/ctlv3/command/snapshot_command.go @@ -392,6 +392,7 @@ func makeDB(snapdir, dbfile string, commit int) { txn.End() s.Commit() s.Close() + be.Close() } type dbstatus struct {