projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9122db4
)
mesh: Fix memory leak on dbus message creation
author
Brian Gix
<brian.gix@intel.com>
Wed, 3 Jul 2019 16:34:03 +0000
(09:34 -0700)
committer
Anupam Roy
<anupam.r@samsung.com>
Tue, 17 Dec 2019 15:20:24 +0000
(20:50 +0530)
Change-Id: I82a29b20859c1310ff17acf8e181de822b9a4952
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/model.c
patch
|
blob
|
history
diff --git
a/mesh/model.c
b/mesh/model.c
index
7401dce
..
a2b3e5c
100644
(file)
--- 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,