nfs/mydaemon.c:130: leaked_handle: Handle variable "tempfd" going out of scope leaks the handle. Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> --- support/nfs/mydaemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/support/nfs/mydaemon.c b/support/nfs/mydaemon.c index 343e80b..d1cf08d 100644 --- a/support/nfs/mydaemon.c +++ b/support/nfs/mydaemon.c @@ -123,6 +123,7 @@ daemon_init(bool fg) dup2(tempfd, 0); dup2(tempfd, 1); dup2(tempfd, 2); + close(tempfd); closelog(); dup2(pipefds[1], 3); pipefds[1] = 3; -- 2.20.1