mesh: Don't add config server when loading from storage
authorInga Stotland <inga.stotland@intel.com>
Thu, 13 Aug 2020 05:01:50 +0000 (22:01 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit9e0e5fabb8e89cd11448e0e637a4130dee5beb8f
tree492e98088aecea6353e2eb2021002b204fafc625
parent39fc3547b8699f8b87f17eccd39d5b7b4a0ac289
mesh: Don't add config server when loading from storage

Adding a sonfig server model when loading from storage is unnecessary,
since the daemon-generated stored configuration always contains
config server model.
This also fixes a memory leak caused by bad parameters passed to
mesh_model_add()

Change-Id: I2568e8a2c910e40fec6c910d65f5f7d432726c4a
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/node.c