Skip to content

Commit d94cf60

Browse files
authored
Merge pull request #2527 from 0xff-dev/main
🐛 fix: goroutine leak
2 parents 86a2e50 + f2fcfbb commit d94cf60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func New(config *rest.Config, options Options) (Manager, error) {
409409
return nil, fmt.Errorf("failed to new pprof listener: %w", err)
410410
}
411411

412-
errChan := make(chan error)
412+
errChan := make(chan error, 1)
413413
runnables := newRunnables(options.BaseContext, errChan)
414414
return &controllerManager{
415415
stopProcedureEngaged: pointer.Int64(0),

0 commit comments

Comments
 (0)