From 99050c7943366bdaebbed12b0bca539e3ade6b7a Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Mar 2016 01:09:10 -0500 Subject: [PATCH] Closed auth and motd files in main after they are no longer needed --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 820243e..f660b6f 100644 --- a/main.go +++ b/main.go @@ -39,6 +39,7 @@ func main() { if err != nil { log.Fatal(err) } + f.Close() lines := strings.Split(string(data[:size]), "\n") for _, line := range lines { @@ -65,6 +66,7 @@ func main() { if err != nil { log.Fatal(err) } + f.Close() server.motd = string(data[:size]) }