From e9efee0e6436c1bf8376121877871e2c5780d95f Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 13 Jun 2022 15:21:04 +0100 Subject: [PATCH] debug: Close object after check (#15077) --- docs/debugging/s3-verify/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/debugging/s3-verify/main.go b/docs/debugging/s3-verify/main.go index e9a1d473e..f01d52d7b 100644 --- a/docs/debugging/s3-verify/main.go +++ b/docs/debugging/s3-verify/main.go @@ -230,6 +230,8 @@ func main() { }() wg.Wait() + tobj.Close() + if !sourceFailed && !targetFailed { ssum := srcSha256.Sum(nil) tsum := tgtSha256.Sum(nil) @@ -240,6 +242,8 @@ func main() { } } } + + sobj.Close() } else { fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err) }