mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-26 09:57:26 +03:00
bus: add assert to check that we're not freeing a static structure
CID #996315.
This commit is contained in:
parent
62d5068d63
commit
75a0da952f
@ -142,6 +142,7 @@ static void bus_free(sd_bus *b) {
|
||||
hashmap_free_free(b->reply_callbacks);
|
||||
prioq_free(b->reply_callbacks_prioq);
|
||||
|
||||
assert(b->match_callbacks.type == BUS_MATCH_ROOT);
|
||||
bus_match_free(&b->match_callbacks);
|
||||
|
||||
hashmap_free_free(b->vtable_methods);
|
||||
|
Loading…
x
Reference in New Issue
Block a user