mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
core: shorten code by using new helper
This commit is contained in:
parent
b1a4981aed
commit
81a40363f5
@ -1080,8 +1080,7 @@ static void destroy_bus(Manager *m, sd_bus **bus) {
|
||||
sd_bus_flush(*bus);
|
||||
|
||||
/* And destroy the object */
|
||||
sd_bus_close(*bus);
|
||||
*bus = sd_bus_unref(*bus);
|
||||
*bus = sd_bus_close_unref(*bus);
|
||||
}
|
||||
|
||||
void bus_done_api(Manager *m) {
|
||||
|
Loading…
Reference in New Issue
Block a user