correct fd leak on error case

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1229 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Fabien Thomas 2006-08-24 15:54:10 +00:00
parent 7f1ba08543
commit 76bffbc3e4

View File

@ -170,6 +170,7 @@ saServiceConnect (
/* if I comment out the 4 lines below the executive crashes */
callbackFD = socket (PF_UNIX, SOCK_STREAM, 0);
if (callbackFD == -1) {
close (responseFD);
return (SA_AIS_ERR_NO_RESOURCES);
}