diff --git a/lib/util.c b/lib/util.c index bbe8ef0b..94ca6ee2 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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); }