summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2019-04-25 12:27:32 -0400
committerSteve Dickson <steved@redhat.com>2019-04-28 13:26:00 -0400
commitf392c003611a329b58f822e12177153039bd454d (patch)
tree9a8e5b6c4cafa751cc0588d8a816efe49b2b7a1d
parentc964b77a532a5f531e5c8699bdbb877385bea587 (diff)
downloadnfs-utils-f392c003611a329b58f822e12177153039bd454d.tar.gz
Removed a resource leak from nfs/mydaemon.c
nfs/mydaemon.c:130: leaked_handle: Handle variable "tempfd" going out of scope leaks the handle. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/nfs/mydaemon.c1
1 files changed, 1 insertions, 0 deletions
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;