Fix memory leak
[platform/core/appfw/event-system.git] / 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[] = {