From: Lennart Poettering Date: Wed, 13 Dec 2023 17:18:39 +0000 (+0100) Subject: userdbd: properly close the listener fd on exit X-Git-Tag: v256-rc1~1492^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e3cb8cf88ae3297f53591c70bd1f56832e1ef83;p=thirdparty%2Fsystemd.git userdbd: properly close the listener fd on exit --- diff --git a/src/userdb/userdbd-manager.c b/src/userdb/userdbd-manager.c index 62a1fa5f4bf..c1dfe47ea35 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);