summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-10 03:54:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-09 21:54:48 -0500
commit8367fea557cffaa6e870ccf1b94a063f560a922f (patch)
treede976851f800e9bc057c7c6ff6c5c8b60ee22517 /src/core/unit.c
parentd26fdaa236e9c6fd8e74e8644a47972be3a8ace4 (diff)
core: make sure to destroy all name watching bus slots when we are kicked off the bus (#5294)
Fixes: #4528
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 90d7eea956..5e4b1567d8 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -2650,7 +2650,7 @@ void unit_unwatch_bus_name(Unit *u, const char *name) {
assert(u);
assert(name);
- hashmap_remove_value(u->manager->watch_bus, name, u);
+ (void) hashmap_remove_value(u->manager->watch_bus, name, u);
u->match_bus_slot = sd_bus_slot_unref(u->match_bus_slot);
}