Message ID | 20200520153551.832644-1-brian.gix@intel.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] mesh: Fix double-free | expand |
diff --git a/mesh/node.c b/mesh/node.c index 2b4b3a563..03f4d342b 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -352,8 +352,10 @@ void node_remove(struct mesh_node *node) l_queue_remove(nodes, node); - if (node->cfg) + if (node->cfg) { mesh_config_destroy(node->cfg); + node->cfg = NULL; + } free_node_resources(node); }