mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
close the reader under disk cache bitrot verification (#16024)
This commit is contained in:
parent
bbc312fce6
commit
7b7356f04c
@ -1003,6 +1003,7 @@ func (c *diskCache) bitrotReadFromCache(ctx context.Context, filePath string, of
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer rc.Close()
|
||||||
bufp := c.pool.Get().(*[]byte)
|
bufp := c.pool.Get().(*[]byte)
|
||||||
defer c.pool.Put(bufp)
|
defer c.pool.Put(bufp)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user