From d3d6f460c9d50e169f2e2a55c9056c858e031799 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 22 Aug 2014 17:40:10 +1000 Subject: [PATCH] Missing Close --- testutil/testutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/testutil/testutil.go b/testutil/testutil.go index f3616b6a..e4b60608 100644 --- a/testutil/testutil.go +++ b/testutil/testutil.go @@ -19,6 +19,7 @@ const GreetingFileContents = "hello, world\n" func CreateDummyTorrentData(dirName string) string { f, _ := os.Create(filepath.Join(dirName, "greeting")) + defer f.Close() f.WriteString("hello, world\n") return f.Name() } -- 2.48.1