cserve2 - debug bin - fix theoretical leak of socket fd

fixes CID 1039286
This commit is contained in:
Carsten Haitzler 2014-01-10 18:40:52 +09:00
parent 3a1d560c0c
commit 796b84e6ec
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ _server_connect(void)
len = strlen(remote.sun_path) + sizeof(remote.sun_family);
if (connect(s, (struct sockaddr *)&remote, len) == -1)
{
close(s);
ERR("connect");
return EINA_FALSE;
}