summaryrefslogtreecommitdiff
path: root/src/core/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-17 16:10:58 +0100
committerLennart Poettering <lennart@poettering.net>2019-01-17 16:12:38 +0100
commit81a40363f5b221aad7c65860001e265a07bf4fd1 (patch)
treeb5dab555c4259c5188549ba1c47a073f608bb0ac /src/core/dbus.c
parentb1a4981aed3f5e939dbe5a211ca066ac69699b24 (diff)
downloadsystemd-81a40363f5b221aad7c65860001e265a07bf4fd1.tar.gz
core: shorten code by using new helper
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r--src/core/dbus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c
index bab4a1a81b..255b86e7a4 100644
--- a/src/core/dbus.c
+++ b/src/core/dbus.c
@@ -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) {