Skip to content

Commit 9bb1999

Browse files
authored
Merge pull request #1046 from testwill/close_cpu_profile
fix: close cpu profile
2 parents 4900170 + 1c7fba6 commit 9bb1999

File tree

1 file changed

+1
-0
lines changed
  • examples/remote-benchmark/node1

1 file changed

+1
-0
lines changed

examples/remote-benchmark/node1/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func main() {
5656
if err != nil {
5757
log.Fatal(err)
5858
}
59+
defer f.Close()
5960
pprof.StartCPUProfile(f)
6061
defer pprof.StopCPUProfile()
6162
}

0 commit comments

Comments
 (0)