From 52454fecdce7ba8150942837bf436603963e47bc Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 11 Nov 2016 20:12:20 +0900 Subject: [PATCH] Fix memory leak Change-Id: I9043d191af121746400d74780dc6a31d1aa1f2d5 Signed-off-by: Hwankyu Jhun --- src/esd_system_event.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/esd_system_event.c b/src/esd_system_event.c index 339833b..12fd9ee 100644 --- a/src/esd_system_event.c +++ b/src/esd_system_event.c @@ -214,6 +214,8 @@ static void __esd_vconfcb_language_set(keynode_t *node, void *user_data) if (b) bundle_free(b); + if (str) + free(str); } static void __esd_vconfcb_hour_format(keynode_t *node, void *user_data) @@ -273,6 +275,8 @@ static void __esd_vconfcb_region_format(keynode_t *node, void *user_data) if (b) bundle_free(b); + if (str) + free(str); } static void __esd_vconfcb_vibration_status(keynode_t *node, void *user_data) @@ -524,6 +528,8 @@ static void __esd_vconfcb_font_set(keynode_t *node, void *user_data) if (b) bundle_free(b); + if (str) + free(str); } static struct esd_vconf_handler vconf_callbacks[] = { -- 2.7.4