mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 00:11:45 +00:00
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:
parent
7f1ba08543
commit
76bffbc3e4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user