diff --git a/cmd/benchcmp/benchcmp.go b/cmd/benchcmp/benchcmp.go index e32c9c3c..5d87561c 100644 --- a/cmd/benchcmp/benchcmp.go +++ b/cmd/benchcmp/benchcmp.go @@ -142,6 +142,7 @@ func parseFile(path string) parse.BenchSet { if err != nil { fatal(err) } + defer f.Close() bb, err := parse.ParseBenchSet(f) if err != nil { fatal(err)