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);
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);