diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-07-06 08:23:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 08:23:06 -0400 |
commit | 19d452c74efb96f718079d5a268ca51a8983c4bd (patch) | |
tree | be89d4719eefcdbfb551bec172566dd762eae7d1 /mattermost.go | |
parent | b8fcf02bf5d625184045ae597cd35273fccb07e6 (diff) | |
download | chat-19d452c74efb96f718079d5a268ca51a8983c4bd.tar.gz chat-19d452c74efb96f718079d5a268ca51a8983c4bd.tar.bz2 chat-19d452c74efb96f718079d5a268ca51a8983c4bd.zip |
Fix connection leaks in push notifications, diagnostics and oauth (#3469)
Diffstat (limited to 'mattermost.go')
-rw-r--r-- | mattermost.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mattermost.go b/mattermost.go index bc90d1139..fc9baa56d 100644 --- a/mattermost.go +++ b/mattermost.go @@ -205,6 +205,8 @@ func doSecurityAndDiagnostics() { } bulletins := model.SecurityBulletinsFromJson(res.Body) + ioutil.ReadAll(res.Body) + res.Body.Close() for _, bulletin := range bulletins { if bulletin.AppliesToVersion == model.CurrentVersion { |