From 19d452c74efb96f718079d5a268ca51a8983c4bd Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 6 Jul 2016 08:23:06 -0400 Subject: Fix connection leaks in push notifications, diagnostics and oauth (#3469) --- mattermost.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mattermost.go') 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 { -- cgit v1.2.3-1-g7c22