From e6808cfe1dd50f80d49946f17e94ef7c417d5644 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 11 May 2023 14:30:52 +0200 Subject: [PATCH] chore(client): add missing defer close in new snapshot command (#16107) --- client/snapshot/dump.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/snapshot/dump.go b/client/snapshot/dump.go index 70f223a590..917dca0715 100644 --- a/client/snapshot/dump.go +++ b/client/snapshot/dump.go @@ -82,6 +82,7 @@ func DumpArchiveCmd() *cobra.Command { if err != nil { return fmt.Errorf("failed to open chunk file %s: %w", path, err) } + defer file.Close() st, err := file.Stat() if err != nil {