mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #111804 from amewayne/automated-cherry-pick-of-#111773-upstream-release-1.23
Automated cherry pick of #111773: fix a memory leak problem when calling DryRunPreemption
This commit is contained in:
commit
bebde23dab
1 changed files with 1 additions and 0 deletions
|
|
@ -549,6 +549,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue