mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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 {
|
||||
return err
|
||||
}
|
||||
defer rc.Close()
|
||||
bufp := c.pool.Get().(*[]byte)
|
||||
defer c.pool.Put(bufp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user