mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00:00
bus: properly unset default bus pointer when destroying last reference
This commit is contained in:
@@ -132,6 +132,9 @@ static void bus_free(sd_bus *b) {
|
||||
|
||||
sd_bus_detach_event(b);
|
||||
|
||||
if (b->default_bus_ptr)
|
||||
*b->default_bus_ptr = NULL;
|
||||
|
||||
bus_close_fds(b);
|
||||
|
||||
if (b->kdbus_buffer)
|
||||
|
||||
Reference in New Issue
Block a user