1
1
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:
Zbigniew Jędrzejewski-Szmek 2014-10-05 14:04:02 -04:00
parent 62d5068d63
commit 75a0da952f

View File

@ -142,6 +142,7 @@ static void bus_free(sd_bus *b) {
hashmap_free_free(b->reply_callbacks); hashmap_free_free(b->reply_callbacks);
prioq_free(b->reply_callbacks_prioq); prioq_free(b->reply_callbacks_prioq);
assert(b->match_callbacks.type == BUS_MATCH_ROOT);
bus_match_free(&b->match_callbacks); bus_match_free(&b->match_callbacks);
hashmap_free_free(b->vtable_methods); hashmap_free_free(b->vtable_methods);