summaryrefslogtreecommitdiff
path: root/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'run.go')
-rw-r--r--run.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/run.go b/run.go
index cfa7829..5f56572 100644
--- a/run.go
+++ b/run.go
@@ -35,7 +35,10 @@ func run(ctx context.Context, cmd *cli.Command) error {
return err
}
- classic(u, cmd.Int("concurrency"), cmd.Int("maxurls"), cmd.Int("depth"))
+ getLeakProfile(func() {
+ classic(u, cmd.Int("concurrency"), cmd.Int("maxurls"), cmd.Int("depth"))
+ })
+
return nil
}