From: Matt Joiner Date: Fri, 22 Aug 2014 07:40:10 +0000 (+1000) Subject: Missing Close X-Git-Tag: v1.0.0~1616 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d3d6f460c9d50e169f2e2a55c9056c858e031799;p=btrtrc.git Missing Close --- 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() }