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:
commit
52d4337004
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…
Reference in a new issue