monitor: request-handler: Fix to delete resource properly 96/272596/1 accepted/tizen/unified/20220322.015107 submit/tizen/20220321.101126
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 21 Mar 2022 08:21:21 +0000 (17:21 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 21 Mar 2022 08:33:58 +0000 (17:33 +0900)
commit2aaf79c894a1b4d2816c5f345ea14beb07f42116
treead90b8631d8b0564e0693a6b2c24e64dd55f96fa
parent83fb619c9a0dd37f2def21090ff2e8fd632f67dc
monitor: request-handler: Fix to delete resource properly

Since resources are managed by hash table, it should be removed from
hash table before removing resource. Otherwise, it can cause
double-free when the client is disconnected. So, this fixes create and
remove procedures to handle hash table properly.

Change-Id: I466e5cc6c289c20cd827964aae0c191b85356938
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/monitor/request-handler.c