mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-23 11:44:14 +00:00
xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c
This commit is contained in:
parent
11434bb2ea
commit
197214112c
|
@ -274,6 +274,7 @@ create_lockfile(int display, char *lockfile, size_t lsize)
|
|||
return -1;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
errno = EEXIST;
|
||||
return -1;
|
||||
} else if (fd < 0) {
|
||||
|
|
Loading…
Reference in a new issue