mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
fix: put *msgp.Reader back in pool (#16927)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user