mesh: Clean up when finishing the Join call
authorInga Stotland <inga.stotland@intel.com>
Sat, 12 Jan 2019 02:40:55 +0000 (18:40 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:02:07 +0000 (19:32 +0530)
commit721e607d44ab3df6ad2043772f7cde366030e0b7
treeae4cd5b65f78dc3c2a15f6d4d5a1f422cf972f6e
parentbe806d96c9a337da35d0a7c3382c8a704101463f
mesh: Clean up when finishing the Join call

Consolidate multiple instances where the pending Join data is freed
into calling one function free_pending_join_call().

Also, add checks for NULL data in cleanup functions for storage, agent
and provisioning acceptor.

Change-Id: I7a93d4f003f090f705be2f1f7af96349d10bdd1c
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/agent.c
mesh/mesh.c
mesh/prov-acceptor.c
mesh/storage.c