cmd/torrentfs: Add missing envpprof.Stop

This commit is contained in:
Matt Joiner 2021-11-12 10:37:21 +11:00
parent 4b9dfa0af7
commit 801fa59d5a
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import (
"bazil.org/fuse"
fusefs "bazil.org/fuse/fs"
"github.com/anacrolix/envpprof"
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/log"
"github.com/anacrolix/tagflag"
@ -67,6 +68,7 @@ func addTestPeer(client *torrent.Client) {
}
func main() {
defer envpprof.Stop()
err := mainErr()
if err != nil {
log.Printf("error in main: %v", err)