testutil/testutil.go | 1 + diff --git a/testutil/testutil.go b/testutil/testutil.go index f3616b6a7c4c73c10f8538432a2eee7bbc102c16..e4b606080853d91be9e4d8e4e86112a57f5f93e0 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() }