From ec2003ce090d357c467afa8b84dc1e7bc9720c01 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 23 Nov 2009 08:25:10 -0800 Subject: [PATCH] close fd if we are not gcd --- lib/ipc/server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ipc/server.c b/lib/ipc/server.c index 6d57e9e31..86930a605 100644 --- a/lib/ipc/server.c +++ b/lib/ipc/server.c @@ -688,6 +688,7 @@ heim_sipc_launchd_stream_fd_init(int fd, *ctx = ct; return 0; #else + close(fd); *ctx = NULL; return EINVAL; #endif