diff options
author | Kay Sievers <kay@vrfy.org> | 2015-08-06 13:01:13 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-08-06 13:01:13 +0200 |
commit | f35e54d03a40e36a2590eb992451c294f624ad3e (patch) | |
tree | 1610a9800fcbae283994d4d240e41b0dc939804d /src/core | |
parent | 5df0997459fef2a3d3e15fcb1f4aa8d0643231aa (diff) | |
parent | cf9fd50884bcd2fd3a54e0e0c0c83a7b3326ca9b (diff) |
Merge pull request #895 from zonque/unit-fix
core: unit: remove bus slot after calling unit_done()
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 6cc5824eb2..43a5ca1064 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -478,11 +478,12 @@ void unit_free(Unit *u) { if (u->manager->n_reloading <= 0) unit_remove_transient(u); - sd_bus_slot_unref(u->match_bus_slot); bus_unit_send_removed_signal(u); unit_done(u); + sd_bus_slot_unref(u->match_bus_slot); + unit_free_requires_mounts_for(u); SET_FOREACH(t, u->names, i) |