]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: unit: remove bus slot after calling unit_done() 895/head
authorDaniel Mack <daniel@zonque.org>
Thu, 6 Aug 2015 10:53:06 +0000 (12:53 +0200)
committerDaniel Mack <daniel@zonque.org>
Thu, 6 Aug 2015 10:56:15 +0000 (12:56 +0200)
commitcf9fd50884bcd2fd3a54e0e0c0c83a7b3326ca9b
tree1610a9800fcbae283994d4d240e41b0dc939804d
parent5df0997459fef2a3d3e15fcb1f4aa8d0643231aa
core: unit: remove bus slot after calling unit_done()

The ->done callback in the unit's vtable might call into
unit_unwatch_bus_name() and corrupt memory by that.

Move the call down, and clean up the bus slot in case it hasn't been done
yet.
src/core/unit.c