From 80fdcd65de500083e0164114b1da8f4b4d0ef7aa Mon Sep 17 00:00:00 2001 From: Daanikus Date: Thu, 31 Oct 2019 15:25:15 +1300 Subject: [PATCH] add missing call to file.Close() --- build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/build.go b/build.go index a78ded3..f43a818 100644 --- a/build.go +++ b/build.go @@ -137,6 +137,7 @@ func GfmrunActionFunc(c *cli.Context) error { if err != nil { return err } + defer file.Close() var counter int scanner := bufio.NewScanner(file)