fix: explicit fd close fix (#5129)

This commit is contained in:
Burkov Egor
2025-02-13 02:41:18 -08:00
committed by GitHub
parent 147e8f5b3b
commit 42b78ded3a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -96,6 +96,7 @@ func mainClusterBucketImport(ctx *cli.Context) error {
f, e = os.Open(args.Get(1))
fatalIf(probe.NewError(e).Trace(args...), "Unable to get bucket metadata")
defer f.Close()
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
+1
View File
@@ -207,6 +207,7 @@ func mainClusterIAMImport(ctx *cli.Context) error {
f, e = os.Open(args.Get(1))
fatalIf(probe.NewError(e).Trace(args...), "Unable to get IAM info")
defer f.Close()
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)