mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
fix: close cpu profile
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
8817ee25ae
commit
2ab2ec29f9
@ -444,6 +444,11 @@ func initConfig() {
|
||||
}
|
||||
atexit.Register(func() {
|
||||
pprof.StopCPUProfile()
|
||||
err := f.Close()
|
||||
if err != nil {
|
||||
err = fs.CountError(err)
|
||||
log.Fatal(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user