1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #1615 from marquiz/devel/master-mem-leak

nfd-master: fix memory leak in nfd api-controller
This commit is contained in:
Kubernetes Prow Robot 2024-03-14 08:21:33 -07:00 committed by GitHub
commit 52d4337004
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) {