xwayland: Close fd opened for lockfile on error path
diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c
index 59154a3..ddd9640 100644
--- a/src/xwayland/launcher.c
+++ b/src/xwayland/launcher.c
@@ -247,6 +247,9 @@
 		if (fd < 0 || read(fd, pid, 11) != 11) {
 			weston_log("can't read lock file %s: %s\n",
 				lockfile, strerror(errno));
+			if (fd >= 0)
+				close (fd);
+
 			errno = EEXIST;
 			return -1;
 		}