summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-07-06 08:23:06 -0400
committerGitHub <noreply@github.com>2016-07-06 08:23:06 -0400
commit19d452c74efb96f718079d5a268ca51a8983c4bd (patch)
treebe89d4719eefcdbfb551bec172566dd762eae7d1 /mattermost.go
parentb8fcf02bf5d625184045ae597cd35273fccb07e6 (diff)
downloadchat-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.go2
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 {