Skip to content

Commit

Permalink
core: close stdoutPipe for the discovery daemon
Browse files Browse the repository at this point in the history
Closing stdoutPipe for the discovery daemon that
could possibly leaks memory due to unclosed resources.

Closes: #8914
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6387c7d)
  • Loading branch information
subhamkrai authored and mergify-bot committed Oct 5, 2021
1 parent 79025f8 commit 99b1952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/daemon/discover/discover.go
Expand Up @@ -158,6 +158,7 @@ func rawUdevBlockMonitor(c chan string, matches, exclusions []string) {
logger.Warningf("Cannot open udevadm stdout: %v", err)
return
}
defer stdout.Close()

err = cmd.Start()
if err != nil {
Expand Down

0 comments on commit 99b1952

Please sign in to comment.