resource-manager: Cleanup uninitialized object correctly 58/296758/3
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 4 Aug 2023 03:08:11 +0000 (12:08 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Aug 2023 04:34:42 +0000 (13:34 +0900)
commitb3249af49bf2b3ffcc5f5a253bb5694f8bf82dcc
tree01d223a508d88313db13542e9f5e30a355b386ef
parent14d78d66a5e28d28d1978e0fddd46894fd3c6160
resource-manager: Cleanup uninitialized object correctly

 When create_resource() fails to set interest bit, a resource instance
fails to be initialized completely. At that point of failure, however,
the resource instance already has been registered to the hashtable,
g_resource_hash_table. Therefore, it is necessary to remove it from the
hashtable.

Change-Id: I26d392f6645ef9871a10de91117f69226f753638
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/resource-manager/resource-manager.c