mirror of
https://github.com/minio/minio.git
synced 2025-04-23 11:55:47 -04:00
fix: put *msgp.Reader back in pool (#16927)
This commit is contained in:
parent
518f6e4d39
commit
b04956a676
@ -731,6 +731,7 @@ func (client *storageRESTClient) StatInfoFile(ctx context.Context, volume, path
|
|||||||
return stat, err
|
return stat, err
|
||||||
}
|
}
|
||||||
rd := msgpNewReader(respReader)
|
rd := msgpNewReader(respReader)
|
||||||
|
defer readMsgpReaderPool.Put(rd)
|
||||||
for {
|
for {
|
||||||
var st StatInfo
|
var st StatInfo
|
||||||
err = st.DecodeMsg(rd)
|
err = st.DecodeMsg(rd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user