mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -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