From 28da1af476853e6b49765bd04a496163e8ebd448 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 9 Apr 2013 16:37:29 +0200 Subject: winbindd: Avoid a fd leak when we can not fork Signed-off-by: Volker Lendecke Signed-off-by: Jim McDonough Autobuild-User(master): Jim McDonough Autobuild-Date(master): Tue Apr 9 20:27:27 CEST 2013 on sn-devel-104 --- source3/winbindd/winbindd_dual.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/winbindd/winbindd_dual.c') diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index e1e45d4910..34896d57fa 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1398,6 +1398,8 @@ static bool fork_domain_child(struct winbindd_child *child) if (child->pid == -1) { DEBUG(0, ("Could not fork: %s\n", strerror(errno))); + close(fdpair[0]); + close(fdpair[1]); return False; } -- cgit