diff --git a/cmd/disk-cache-backend.go b/cmd/disk-cache-backend.go index b9ff603ea..dce5578ec 100644 --- a/cmd/disk-cache-backend.go +++ b/cmd/disk-cache-backend.go @@ -1003,6 +1003,7 @@ func (c *diskCache) bitrotReadFromCache(ctx context.Context, filePath string, of if err != nil { return err } + defer rc.Close() bufp := c.pool.Get().(*[]byte) defer c.pool.Put(bufp)