diff options
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/loginctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c index f3231bc0e4..3e917cb3f5 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -1584,7 +1584,7 @@ static int loginctl_main(int argc, char *argv[], sd_bus *bus) { } int main(int argc, char *argv[]) { - sd_bus *bus = NULL; + _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; int r; setlocale(LC_ALL, ""); @@ -1607,8 +1607,6 @@ int main(int argc, char *argv[]) { r = loginctl_main(argc, argv, bus); finish: - sd_bus_flush_close_unref(bus); - pager_close(); polkit_agent_close(); |