Skip to content

Commit

Permalink
Merge pull request #1621 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1615-to-release-0.15

[release-0.15] nfd-master: fix memory leak in nfd api-controller
  • Loading branch information
k8s-ci-robot committed Mar 14, 2024
2 parents aa287ed + 5c7317e commit 924b2b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/nfd-master/nfd-api-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 924b2b4

Please sign in to comment.