ttrpc: return buffers to pool

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2017-11-29 21:32:38 -08:00
parent 8f839f204c
commit 5859cd7b45
2 changed files with 3 additions and 0 deletions

View File

@@ -206,5 +206,6 @@ func (c *Client) recv(resp *Response, msg *message) error {
return errors.New("unkown message type received")
}
defer c.channel.putmbuf(msg.p)
return proto.Unmarshal(msg.p, resp)
}