From 197214112c054038c956e7ce73602a8e1edbe798 Mon Sep 17 00:00:00 2001 From: Martin Olsson Date: Sun, 8 Jul 2012 03:03:45 +0200 Subject: [PATCH] xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c --- src/xwayland/launcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c index 0184c08..035c8e3 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) { -- 2.7.4