xwayland - handle negative return failure for abs socket create

fix CID 1403929
This commit is contained in:
Carsten Haitzler 2019-08-06 19:05:36 +01:00
parent 96ae312d6e
commit 3a581f888d
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ xwl_init(void *d EINA_UNUSED)
if (exs->unx_fd < 0)
{
unlink(exs->lock);
close(exs->abs_fd);
if (exs->abs_fd >= 0) close(exs->abs_fd);
free(exs);
return EINA_FALSE;
}