update-utmp: flush and close the bus used for connections after use

This commit is contained in:
Lennart Poettering
2015-09-29 21:55:52 +02:00
parent f0960da0fa
commit f0792aae43
+1 -1
View File
@@ -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;
}