input: Add a handling case for memory allocation failure 31/310431/3 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240502.164113
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 29 Apr 2024 02:35:08 +0000 (11:35 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 30 Apr 2024 05:23:09 +0000 (14:23 +0900)
commitb8603412f5be3d80b40c747e94586aaa217f49e6
tree5fabe36af283abe4fa9abe77fa131aaed9775516
parent012fc3dd0a81dc64621cb61392cc7bfbce40b479
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: Ia8b5239675833a068234886c3031a84c8c081dd2
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/iot-headless/input/input-config.c