mesh: Fix clean up of node's DBUS assosiated resources
authorInga Stotland <inga.stotland@intel.com>
Wed, 3 Jul 2019 23:02:44 +0000 (16:02 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 15:20:51 +0000 (20:50 +0530)
commit922a4b50cbf23d6fa9da7a9b064e29fb3cd5106b
treedc94af32005f715b537c64cc2e61f4298065bb51
parenta4a1f0383e9611706c2f7884557bf1b99e5ab1e3
mesh: Fix clean up of node's DBUS assosiated resources

This consolidates multiple places where node's object paths,
interfaces, etc. are de-allocated, into one routine:
free_node_dbus_resources().
This also addresses memory leaks assosiated with inconsistent freeing
of object path strings.

Change-Id: If11ec87748384b43dd7f6b7ef06d88439cf0323c
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/node.c