Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fca59 commit 9dd9c76Copy full SHA for 9dd9c76
1 file changed
commands/hugobuilder.go
@@ -179,6 +179,7 @@ func (c *hugoBuilder) initCPUProfile() (func(), error) {
179
return nil, fmt.Errorf("failed to create CPU profile: %w", err)
180
}
181
if err := pprof.StartCPUProfile(f); err != nil {
182
+ f.Close()
183
return nil, fmt.Errorf("failed to start CPU profile: %w", err)
184
185
return func() {
0 commit comments