diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-05 14:04:02 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-05 15:29:41 -0400 |
commit | 75a0da952f603006d6b3535ecaf8ebe2bded30e7 (patch) | |
tree | 26d72a27e3111f39a29c0bbfac8cda51f642f373 | |
parent | 62d5068d631fd655efe3ae4ad51fffe28e13e27a (diff) |
bus: add assert to check that we're not freeing a static structure
CID #996315.
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 28b993b7ba..bc4376fb51 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -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); |