diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c index f10a2831..a069bd4f 100644 --- a/libweston/launcher-logind.c +++ b/libweston/launcher-logind.c @@ -216,6 +216,7 @@ launcher_logind_close(struct weston_launcher *launcher, int fd) int r; r = fstat(fd, &st); + close(fd); if (r < 0) { weston_log("logind: cannot fstat fd: %m\n"); return;