From 97f68772e62a8f70b3d52bed59661bcff92d7694 Mon Sep 17 00:00:00 2001 From: Jakub Witowski Date: Fri, 28 Jun 2019 11:50:49 +0200 Subject: [PATCH] mesh: Clear nodes queue on get_managed_objects_cb() fails Currently when the get_managed_objects_cb() fails it frees the node resources but the node still remains on the "nodes" queue. This implementation calls node_remove() instead of free_node_resources()." --- mesh/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/node.c b/mesh/node.c index 81fa032e9..0885168a0 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1601,7 +1601,7 @@ fail: } else { /* Handle failed Join and Create requests */ if (node) - free_node_resources(node); + node_remove(node); if (req->type == REQUEST_TYPE_JOIN) { node_join_ready_func_t cb = req->cb; -- 2.47.3