Diff between b2fd4c7e1ecf715a0f56e0a4534329db9b4e44b1 and 3df89f700af7375faedfe123d0ce1834963f6878
Changed Files
| File | Additions | Deletions | Status |
| mesh/model.c | +3 | -0 | modified |
Full Patch
diff --git a/mesh/model.c b/mesh/model.c
index 7401dce..a2b3e5c 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -729,10 +729,13 @@ static void send_msg_rcvd(struct mesh_node *node, uint8_t ele_idx, bool is_sub,
if (!l_dbus_message_builder_finalize(builder))
goto error;
+ l_dbus_message_builder_destroy(builder);
l_dbus_send(dbus, msg);
+ return;
error:
l_dbus_message_builder_destroy(builder);
+ l_dbus_message_unref(msg);
}
bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0,