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…
x
Reference in New Issue
Block a user