mirror of
https://github.com/minio/minio
synced 2024-09-06 00:37:25 +00: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
|
||||
}
|
||||
rd := msgpNewReader(respReader)
|
||||
defer readMsgpReaderPool.Put(rd)
|
||||
for {
|
||||
var st StatInfo
|
||||
err = st.DecodeMsg(rd)
|
||||
|
|
Loading…
Reference in a new issue