From 00af84d91b8482dfc2e1b7c1914cc453f68d725e Mon Sep 17 00:00:00 2001 From: xenolf Date: Mon, 21 Dec 2015 01:42:33 +0100 Subject: [PATCH] Close response body in getIssuerCertificate --- acme/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/client.go b/acme/client.go index 8c7e644f..742a8f20 100644 --- a/acme/client.go +++ b/acme/client.go @@ -656,6 +656,7 @@ func (c *Client) getIssuerCertificate(url string) ([]byte, error) { if err != nil { return nil, err } + defer resp.Body.Close() issuerBytes, err := ioutil.ReadAll(resp.Body) if err != nil {