mirror of https://github.com/minio/minio.git
put *msgp.Reader back to pool (#17156)
This commit is contained in:
parent
5b364bca1f
commit
e3a070e3de
|
@ -1294,6 +1294,7 @@ func (s *storageRESTServer) ReadMultiple(w http.ResponseWriter, r *http.Request)
|
|||
|
||||
var req ReadMultipleReq
|
||||
mr := msgpNewReader(r.Body)
|
||||
defer readMsgpReaderPool.Put(mr)
|
||||
err := req.DecodeMsg(mr)
|
||||
if err != nil {
|
||||
rw.CloseWithError(err)
|
||||
|
|
Loading…
Reference in New Issue