forked from enlightenment/efl
cserve2 - debug bin - fix theoretical leak of socket fd
fixes CID 1039286
This commit is contained in:
parent
3a1d560c0c
commit
796b84e6ec
|
@ -74,6 +74,7 @@ _server_connect(void)
|
||||||
len = strlen(remote.sun_path) + sizeof(remote.sun_family);
|
len = strlen(remote.sun_path) + sizeof(remote.sun_family);
|
||||||
if (connect(s, (struct sockaddr *)&remote, len) == -1)
|
if (connect(s, (struct sockaddr *)&remote, len) == -1)
|
||||||
{
|
{
|
||||||
|
close(s);
|
||||||
ERR("connect");
|
ERR("connect");
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue