From 9a5d9ba3b8c3b88c75411980323713f5dd62e7d6 Mon Sep 17 00:00:00 2001 From: Soulou Date: Tue, 23 Dec 2014 12:32:37 +0100 Subject: [PATCH] file.close in auth --- config/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/auth.go b/config/auth.go index 2c0e8b9af..2d49e08b9 100644 --- a/config/auth.go +++ b/config/auth.go @@ -45,6 +45,7 @@ func LoadAuth() (*users.User, error) { if err != nil { return nil, errgo.Mask(err, errgo.Any) } + defer file.Close() var authConfig AuthConfigData dec := json.NewDecoder(file)