Merge pull request #1104 from VincentVanlaer/logind-fd-leak

Close fd's obtained from logind
This commit is contained in:
Drew DeVault 2018-06-30 17:49:45 -07:00 committed by GitHub
commit 07209d062c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,7 @@ static void logind_release_device(struct wlr_session *base, int fd) {
sd_bus_error_free(&error); sd_bus_error_free(&error);
sd_bus_message_unref(msg); sd_bus_message_unref(msg);
close(fd);
} }
static bool logind_change_vt(struct wlr_session *base, unsigned vt) { static bool logind_change_vt(struct wlr_session *base, unsigned vt) {