summaryrefslogtreecommitdiff
path: root/src/update-utmp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-24 13:34:08 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-29 21:55:52 +0200
commitf0792aae430562a59f95d8ec3d9773cbeb032f43 (patch)
tree9425df9c69aa8224720206741e7e38b6e7f48a95 /src/update-utmp
parentf0960da0fa564c6cf762ba907040d15c9db1bdba (diff)
update-utmp: flush and close the bus used for connections after use
Diffstat (limited to 'src/update-utmp')
-rw-r--r--src/update-utmp/update-utmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index 22ef79165a..bcabf65a36 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -279,6 +279,6 @@ finish:
audit_close(c.audit_fd);
#endif
- sd_bus_unref(c.bus);
+ sd_bus_flush_close_unref(c.bus);
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}