From e2a4ac7a31ed2899c8c0c97a3e5ff4b41aaa186f Mon Sep 17 00:00:00 2001 From: HuanGong Date: Mon, 3 Oct 2022 23:59:17 +0800 Subject: [PATCH] Fix: s3(minio) file remove operation hangout --- pkg/filesystem/driver/s3/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/filesystem/driver/s3/handler.go b/pkg/filesystem/driver/s3/handler.go index a6d17bfe95..3f759c1c75 100644 --- a/pkg/filesystem/driver/s3/handler.go +++ b/pkg/filesystem/driver/s3/handler.go @@ -407,6 +407,7 @@ func (handler *Driver) Meta(ctx context.Context, path string) (*MetaData, error) if err != nil { return nil, err } + defer res.Body.Close() return &MetaData{ Size: uint64(*res.ContentLength),