1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

core: shorten code by using new helper

This commit is contained in:
Lennart Poettering 2019-01-17 16:10:58 +01:00
parent b1a4981aed
commit 81a40363f5

View File

@ -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) {