mirror of https://github.com/minio/minio.git
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 New Issue