mesh: Fix memory leak in Create, Import & Attach methods 21/235121/1
authorInga Stotland <inga.stotland@intel.com>
Fri, 22 May 2020 00:35:00 +0000 (17:35 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 28 May 2020 11:27:22 +0000 (16:57 +0530)
commitc8266f8a1022b33e4efbcac6add1ec45857dc091
tree58276fa428bedb58b4420e36c130e415c845df45
parent42ed9f94ea3b33df1d5e3ceec30f09ab36784a6c
mesh: Fix memory leak in Create, Import & Attach methods

This ensures that every time l_dbus_message_ref() is used to preserve
a message for a pending method reply, there is a matching call to
l_dbus_message_unref().

Change-Id: I5c6846f9ab9ca11d23c7729933af0e2945d015c1
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/mesh.c