Fix memory leak 07/118407/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Mar 2017 08:11:10 +0000 (17:11 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Mar 2017 08:11:10 +0000 (17:11 +0900)
Change-Id: I3c20bfa818cc195b2ec78d6a3de17fb70b65180b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/widget_service.c

index 170a752..d922a61 100644 (file)
@@ -325,6 +325,8 @@ static int _resolution_update_from_file(void)
                }
                _resolution_update_size_list(width_type, height_type, width, height);
        }
+       if (key_list)
+               free(key_list);
        iniparser_freedict(dic);
 
        return WIDGET_ERROR_NONE;