close fd if we are not gcd
This commit is contained in:
@@ -688,6 +688,7 @@ heim_sipc_launchd_stream_fd_init(int fd,
|
|||||||
*ctx = ct;
|
*ctx = ct;
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
close(fd);
|
||||||
*ctx = NULL;
|
*ctx = NULL;
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user