diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-05-21 17:34:54 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-05-22 13:45:52 -0700 |
commit | 7eca3becceed3d44c0abf1610d93307a023c1c79 (patch) | |
tree | 9f8ec482490d14e1a2ebab476a2ed43f774f6078 /mesh/node.c | |
parent | f5fcab32765df30f8d9a0ad5c71ce2702e3aa38f (diff) | |
download | bluez-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.c | 1 |
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); |