mesh: Fix leaked mesh_net allocation 24/235124/1
authorBrian Gix <brian.gix@intel.com>
Fri, 22 May 2020 19:50:07 +0000 (12:50 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 28 May 2020 11:27:22 +0000 (16:57 +0530)
Change-Id: I0eef7ea2f02e0b3263ffd06c181f6895e6f66bb1
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/node.c

index 904f3f6..66b9c41 100644 (file)
@@ -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();