diff --git a/exporter/http.go b/exporter/http.go index a0d8cc37..1bc63edc 100644 --- a/exporter/http.go +++ b/exporter/http.go @@ -146,6 +146,7 @@ func getHTTPResponse(url string, token string) (*http.Response, error) { // check rate limit exceeded. if resp.Status == RateLimitExceededStatus { + resp.Body.Close() return nil, fmt.Errorf("%s", resp.Status) }