diff --git a/plugins/client.go b/plugins/client.go index d531fa4..619ff26 100644 --- a/plugins/client.go +++ b/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 {