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()."
Change-Id: I2a2e03c671d85e9ee318fb8ae30b7d67e4855ffc
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
} 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;