Skip to content

Commit

Permalink
Merge pull request kubernetes#111773 from amewayne/fix_mem_leak_in_pr…
Browse files Browse the repository at this point in the history
…eemption

fix a memory leakage problem when calling DryRunPreemption
  • Loading branch information
k8s-ci-robot committed Aug 11, 2022
2 parents f595671 + 1457ad5 commit 7b1b801
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 7b1b801

Please sign in to comment.