summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-12-13 18:18:39 +0100
committerLennart Poettering <lennart@poettering.net>2023-12-13 18:18:39 +0100
commit0e3cb8cf88ae3297f53591c70bd1f56832e1ef83 (patch)
tree04914c1076831eb94585dfb29bfa7e132444732b
parentupdate TODO (diff)
downloadsystemd-0e3cb8cf88ae3297f53591c70bd1f56832e1ef83.tar.xz
systemd-0e3cb8cf88ae3297f53591c70bd1f56832e1ef83.zip
userdbd: properly close the listener fd on exit
-rw-r--r--src/userdb/userdbd-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/userdb/userdbd-manager.c b/src/userdb/userdbd-manager.c
index 62a1fa5f4b..c1dfe47ea3 100644
--- a/src/userdb/userdbd-manager.c
+++ b/src/userdb/userdbd-manager.c
@@ -124,6 +124,8 @@ Manager* manager_free(Manager *m) {
m->deferred_start_worker_event_source = sd_event_source_unref(m->deferred_start_worker_event_source);
+ safe_close(m->listen_fd);
+
sd_event_unref(m->event);
return mfree(m);