Fix resource leak 32/172232/2 accepted/tizen/unified/20180320.141341 submit/tizen/20180318.231541 submit/tizen/20180320.043504
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 13 Mar 2018 02:39:38 +0000 (11:39 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 13 Mar 2018 02:40:01 +0000 (11:40 +0900)
CID-109615, 109772, 108908

Change-Id: I7cef5bcd963f74ef11d78dab5f974c12e1e0a734

sources/ui-gadget/viewers-layout/wifi_viewer_list.c

index 7b3693e..a3fde43 100755 (executable)
@@ -115,6 +115,7 @@ static char* _gl_listview_text_get(void *data, Evas_Object *obj, const char *par
 
                assertm_if(NULL == det, "NULL!!");
        }
+       g_free(convertedColor);
        return det;
 }
 
@@ -1088,8 +1089,10 @@ Elm_Object_Item *viewer_list_item_insert_after(wifi_device_info_t *wifi_device,
 
        gdata = g_try_new0(ug_genlist_data_t, 1);
        if (gdata == NULL) {
-               if (no_wifi_device)
+               if (no_wifi_device) {
                        g_free(no_wifi_device->ssid);
+                       g_free(no_wifi_device);
+               }
                return NULL;
        }