debug: Close object after check (#15077)

This commit is contained in:
Anis Elleuch 2022-06-13 15:21:04 +01:00 committed by GitHub
parent 4b3e7aee0b
commit e9efee0e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,6 +230,8 @@ func main() {
}() }()
wg.Wait() wg.Wait()
tobj.Close()
if !sourceFailed && !targetFailed { if !sourceFailed && !targetFailed {
ssum := srcSha256.Sum(nil) ssum := srcSha256.Sum(nil)
tsum := tgtSha256.Sum(nil) tsum := tgtSha256.Sum(nil)
@ -240,6 +242,8 @@ func main() {
} }
} }
} }
sobj.Close()
} else { } else {
fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err) fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err)
} }