From 6c49576a860433d89b3c2d651bdca386353128cc Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Fri, 29 May 2015 12:03:40 +0800 Subject: [PATCH] bug fix: close http response body no longer in use Signed-off-by: Zhang Wei --- pkg/plugins/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/plugins/client.go b/pkg/plugins/client.go index d531fa46fb..619ff260ba 100644 --- a/pkg/plugins/client.go +++ b/pkg/plugins/client.go @@ -68,6 +68,7 @@ func (c *Client) callWithRetry(serviceMethod string, args interface{}, ret inter continue } + defer resp.Body.Close() if resp.StatusCode != http.StatusOK { remoteErr, err := ioutil.ReadAll(resp.Body) if err != nil {