From 9378cbb019f9b28cf94d877faa0430ee989f8798 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 7 Sep 2002 06:04:28 +0000 Subject: Don't leak file desciptors in this (impossible?) error case. (This used to be commit b440418f13b840860be42690bf475c1ee3cb3647) --- source3/nsswitch/wb_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/nsswitch/wb_common.c') diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index 0d1be4d5d1..88bda4eabe 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/nsswitch/wb_common.c @@ -98,6 +98,7 @@ static int make_nonstd_fd_internals(int fd, int limit /* Recursion limiter */) } /* Parinoia */ if (new_fd < 3) { + close(new_fd); return -1; } close(fd); -- cgit