chiark / gitweb /
sd-bus: add sd_bus_message.verify_destination_id and .destination_ptr
[elogind.git] / src / libsystemd / sd-bus / bus-message.c
index be36d9f..1a8c445 100644 (file)
@@ -148,6 +148,11 @@ static void message_free(sd_bus_message *m) {
         if (m->iovec != m->iovec_fixed)
                 free(m->iovec);
 
+        if (m->destination_ptr) {
+                free(m->destination_ptr);
+                m->destination_ptr = NULL;
+        }
+
         message_reset_containers(m);
         free(m->root_container.signature);
         free(m->root_container.offsets);