xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c

This commit is contained in:
Martin Olsson 2012-07-08 03:03:45 +02:00 committed by Kristian Høgsberg
parent 11434bb2ea
commit 197214112c

View file

@ -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) {