Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit a979be9

Browse files
committed
Reauth didn't close old connection
which cause file descriptor leaks
1 parent 8d032cb commit a979be9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

provider_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ func (client *ProviderClient) Request(method, url string, options RequestOpts) (
192192
if options.RawBody != nil {
193193
options.RawBody.Seek(0, 0)
194194
}
195+
resp.Body.Close()
195196
resp, err = client.Request(method, url, options)
196197
if err != nil {
197198
return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err)

0 commit comments

Comments
 (0)