Fixes after running errcheck

This commit is contained in:
Nick Craig-Wood
2014-07-25 18:19:49 +01:00
parent 125fc8f1f0
commit 17ffb0855f
6 changed files with 22 additions and 14 deletions

View File

@@ -265,7 +265,11 @@ func ParseFlags() {
fs.Stats.Error()
log.Fatal(err)
}
pprof.StartCPUProfile(f)
err = pprof.StartCPUProfile(f)
if err != nil {
fs.Stats.Error()
log.Fatal(err)
}
defer pprof.StopCPUProfile()
}
}