diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 79934a8d4..40e5cb43d 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -2306,7 +2306,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si }) // return the memory and token - memPool.Put(buf[:partSize]) + memPool.Put(buf) tokens.Put() if err != nil {