commit | a979be9c5ec2eedeba76f064e53ed6e54168b256 | [log] [tgz] |
---|---|---|
author | Fredi Pevcin <fredipevcin@users.noreply.github.com> | Tue Oct 20 09:13:29 2015 +0200 |
committer | Fredi Pevcin <fredipevcin@users.noreply.github.com> | Tue Oct 20 09:13:29 2015 +0200 |
tree | 9a06d5e291585e190ecb03212c4796178a748c81 | |
parent | 8d032cb1e835a0018269de3d6b53bb24fc77a8c0 [diff] [blame] |
Reauth didn't close old connection which cause file descriptor leaks
diff --git a/provider_client.go b/provider_client.go index d920913..e813e0e 100644 --- a/provider_client.go +++ b/provider_client.go
@@ -192,6 +192,7 @@ if options.RawBody != nil { options.RawBody.Seek(0, 0) } + resp.Body.Close() resp, err = client.Request(method, url, options) if err != nil { return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err)