Skip to content

Commit

Permalink
fix a memory leak problem when calling DryRunPreemption
Browse files Browse the repository at this point in the history
  • Loading branch information
amewayne committed Aug 10, 2022
1 parent a837be0 commit 1457ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/framework/preemption/preemption.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ func (ev *Evaluator) DryRunPreemption(ctx context.Context, pod *v1.Pod, potentia
nonViolatingCandidates := newCandidateList(numCandidates)
violatingCandidates := newCandidateList(numCandidates)
parallelCtx, cancel := context.WithCancel(ctx)
defer cancel()
nodeStatuses := make(framework.NodeToStatusMap)
var statusesLock sync.Mutex
var errs []error
Expand Down

0 comments on commit 1457ad5

Please sign in to comment.