diff --git a/cmd/storage-rest-client.go b/cmd/storage-rest-client.go index fa0a6218e..5a44e025f 100644 --- a/cmd/storage-rest-client.go +++ b/cmd/storage-rest-client.go @@ -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)