deviced-input: Add a handling case for memory allocation failure 35/310435/2 accepted/tizen_unified_dev accepted/tizen/unified/20240502.105909 accepted/tizen/unified/dev/20240620.000236 accepted/tizen/unified/toolchain/20240507.011900 accepted/tizen/unified/x/20240503.091210 accepted/tizen/unified/x/asan/20240625.093052
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 29 Apr 2024 02:11:55 +0000 (11:11 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 30 Apr 2024 02:41:15 +0000 (11:41 +0900)
commit2139e59c3b8fc78ac1d58c802b10779dc50824af
tree9b43f424efe65f58ff70e5082480e96261b7003b
parent0c6da4dd466cbd7ce093205ccc1720f448c23128
deviced-input: Add a handling case for memory allocation failure

While parsing input event conf file, memory callocaion can fails.
However, free handling code was omitted in the allocation failed case.
To prevent memory leak, this is necessary.

Change-Id: I658cba460e487f66fa861c42803b05090d268ba7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/deviced-input/deviced-input.c