Fix memory leak 10/118410/1 accepted/tizen/3.0/common/20170316.121720 accepted/tizen/3.0/ivi/20170316.083344 accepted/tizen/3.0/mobile/20170316.083309 accepted/tizen/3.0/tv/20170316.083325 accepted/tizen/3.0/wearable/20170316.083333 submit/tizen_3.0/20170316.021307
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:23:47 +0000 (00:23 -0800)
Change-Id: I3c20bfa818cc195b2ec78d6a3de17fb70b65180b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
(cherry picked from commit 6e8c45268b485577001e028c1ebf9e6a4f5f2986)

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;