summaryrefslogtreecommitdiff
path: root/mesh/node.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-05-21 17:34:54 -0700
committerBrian Gix <brian.gix@intel.com>2020-05-22 13:45:52 -0700
commit7eca3becceed3d44c0abf1610d93307a023c1c79 (patch)
tree9f8ec482490d14e1a2ebab476a2ed43f774f6078 /mesh/node.c
parentf5fcab32765df30f8d9a0ad5c71ce2702e3aa38f (diff)
downloadbluez-7eca3becceed3d44c0abf1610d93307a023c1c79.tar.gz
mesh: Remove agent when freeing node's dynamic resources
This adds clean up of node's agent instance when node's dynamic resources are freed.
Diffstat (limited to 'mesh/node.c')
-rw-r--r--mesh/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/node.c b/mesh/node.c
index d5e07ce7f..8ad77639e 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -333,6 +333,7 @@ static void free_node_resources(void *data)
/* Free dynamic resources */
free_node_dbus_resources(node);
l_queue_destroy(node->elements, element_free);
+ mesh_agent_remove(node->agent);
mesh_config_release(node->cfg);
mesh_net_free(node->net);
l_free(node->storage_dir);