1
0
Fork 0
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:
Kubernetes Prow Robot 2024-03-14 08:43:37 -07:00 committed by GitHub
commit 47f256774d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,10 +123,7 @@ func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiC
} }
func (c *nfdController) stop() { func (c *nfdController) stop() {
select { close(c.stopChan)
case c.stopChan <- struct{}{}:
default:
}
} }
func (c *nfdController) updateOneNode(typ string, obj metav1.Object) { func (c *nfdController) updateOneNode(typ string, obj metav1.Object) {