aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Vanlaer <vincent.vanlaer@skynet.be>2018-07-01 02:22:57 +0200
committerVincent Vanlaer <vincent.vanlaer@skynet.be>2018-07-01 02:22:57 +0200
commitece58514b456527ee86220cab6787fe9e494ce5b (patch)
tree2f3c376212d63fedd4c915b4380ba84d3dc00b77
parent02dfa9101ec7fd8328ed329d2f2faa815b1ad61c (diff)
Close fd's obtained from logind
-rw-r--r--backend/session/logind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/session/logind.c b/backend/session/logind.c
index 3a3cc57d..e01047e3 100644
--- a/backend/session/logind.c
+++ b/backend/session/logind.c
@@ -104,6 +104,7 @@ static void logind_release_device(struct wlr_session *base, int fd) {
sd_bus_error_free(&error);
sd_bus_message_unref(msg);
+ close(fd);
}
static bool logind_change_vt(struct wlr_session *base, unsigned vt) {