deviced-input: Add a handling case for memory allocation failure 37/310437/2 accepted/tizen_8.0_unified accepted/tizen/8.0/unified/20240502.163832
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 29 Apr 2024 03:08:07 +0000 (12:08 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 30 Apr 2024 02:18:29 +0000 (11:18 +0900)
commitda1e04152c138f3f1f5928f86f79da740c1188d2
tree9b43f424efe65f58ff70e5082480e96261b7003b
parentdd91a76ac5c2fb174d5216c6fae946f1a1c3169d
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: I2d37d5d6e13f3bce6ef9e6541d0334bc45c0232c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/deviced-input/deviced-input.c