Skip to content

Commit

Permalink
Merge pull request #772 from testwill/close_cpu_profile
Browse files Browse the repository at this point in the history
fix: close cpu profile
  • Loading branch information
LandonTClipp committed Apr 4, 2024
2 parents 59f7d94 + bdfbb23 commit dc80845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mockery.go
Expand Up @@ -316,7 +316,7 @@ func (r *RootApp) Run() error {
if err != nil {
return stackerr.NewStackErrf(err, "Failed to create profile file")
}

defer f.Close()
if err := pprof.StartCPUProfile(f); err != nil {
return fmt.Errorf("failed to start CPU profile: %w", err)
}
Expand Down

0 comments on commit dc80845

Please sign in to comment.