mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-17 13:58:21 +00:00
Merge pull request #1622 from k8s-infra-cherrypick-robot/cherry-pick-1615-to-release-0.14
[release-0.14] nfd-master: fix memory leak in nfd api-controller
This commit is contained in:
commit
47f256774d
1 changed files with 1 additions and 4 deletions
|
@ -123,10 +123,7 @@ func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiC
|
|||
}
|
||||
|
||||
func (c *nfdController) stop() {
|
||||
select {
|
||||
case c.stopChan <- struct{}{}:
|
||||
default:
|
||||
}
|
||||
close(c.stopChan)
|
||||
}
|
||||
|
||||
func (c *nfdController) updateOneNode(typ string, obj metav1.Object) {
|
||||
|
|
Loading…
Add table
Reference in a new issue