From 908417212889ecbd19f30132eba63bc02b06cce8 Mon Sep 17 00:00:00 2001 From: Brian Gix Date: Fri, 22 May 2020 12:50:07 -0700 Subject: [PATCH] mesh: Fix leaked mesh_net allocation --- mesh/node.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesh/node.c b/mesh/node.c index 49ba7c885..db888d27c 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1313,8 +1313,6 @@ static bool add_local_node(struct mesh_node *node, uint16_t unicast, bool kr, bool ivu, uint32_t iv_idx, uint8_t dev_key[16], uint16_t net_key_idx, uint8_t net_key[16]) { - node->net = mesh_net_new(node); - if (!nodes) nodes = l_queue_new(); -- 2.47.3