Skip to content

Commit

Permalink
FIX: fd leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
myzhan committed Jun 11, 2019
1 parent 12d01c8 commit c0ee321
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func StartMemoryProfile(file string, duration time.Duration) (err error) {
err = pprof.WriteHeapProfile(f)
if err != nil {
log.Println(err)
return
}
f.Close()
log.Println("Stop memory profiling after", duration)
Expand Down

0 comments on commit c0ee321

Please sign in to comment.