summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Olsson <martin@minimum.se>2012-07-08 03:03:45 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-07-09 17:50:45 -0400
commit197214112c054038c956e7ce73602a8e1edbe798 (patch)
tree7fcefdde7966db6aa7c43620e7869385c049e723
parent11434bb2ea35783b89f929235e8803c9b9d44344 (diff)
xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c
-rw-r--r--src/xwayland/launcher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c
index 0184c08c..035c8e30 100644
--- a/src/xwayland/launcher.c
+++ b/src/xwayland/launcher.c
@@ -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) {