Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fix: close cpu profile

guangwu2ab2ec29f923
diff --git a/cmd/cmd.go b/cmd/cmd.go
index 65873bfb5..b6f4bc4ba 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -444,6 +444,11 @@ func initConfig() {
}
atexit.Register(func() {
pprof.StopCPUProfile()
+ err := f.Close()
+ if err != nil {
+ err = fs.CountError(err)
+ log.Fatal(err)
+ }
})
}