1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

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

This commit is contained in:
Lennart Poettering 2015-09-24 13:34:08 +02:00
parent f0960da0fa
commit f0792aae43

View File

@ -279,6 +279,6 @@ finish:
audit_close(c.audit_fd); audit_close(c.audit_fd);
#endif #endif
sd_bus_unref(c.bus); sd_bus_flush_close_unref(c.bus);
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
} }