close fd if we are not gcd

This commit is contained in:
Love Hornquist Astrand
2009-11-23 08:25:10 -08:00
parent 6e8515e3a8
commit ec2003ce09

View File

@@ -688,6 +688,7 @@ heim_sipc_launchd_stream_fd_init(int fd,
*ctx = ct;
return 0;
#else
close(fd);
*ctx = NULL;
return EINVAL;
#endif