From 2271fcfdef3e7218098362df91f7d4dbd9699874 Mon Sep 17 00:00:00 2001 From: SuperHgO <10153981+echoface@users.noreply.github.com> Date: Sat, 8 Oct 2022 19:21:38 +0800 Subject: [PATCH] fix: s3(minio) file remove operation hangout (#1491) --- 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 a6d17bf..3f759c1 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),