Fix memory leak 95/97195/1 submit/tizen_3.0/20161111.111420
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 11 Nov 2016 11:12:20 +0000 (20:12 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 11 Nov 2016 11:12:20 +0000 (20:12 +0900)
Change-Id: I9043d191af121746400d74780dc6a31d1aa1f2d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/esd_system_event.c

index 339833b..12fd9ee 100644 (file)
@@ -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[] = {