1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

userdbd: properly close the listener fd on exit

(cherry picked from commit 0e3cb8cf88)
(cherry picked from commit af1a61b3cf)
(cherry picked from commit 0ff569798c)
This commit is contained in:
Lennart Poettering 2023-12-13 18:18:39 +01:00 committed by Luca Boccassi
parent b28b9db29b
commit f7491ce9e6

View File

@ -132,6 +132,8 @@ Manager* manager_free(Manager *m) {
sd_event_source_disable_unref(m->sigusr2_event_source);
sd_event_source_disable_unref(m->sigchld_event_source);
safe_close(m->listen_fd);
sd_event_unref(m->event);
return mfree(m);