WGID-12828, WGID-13363, WGID-13674,
WGID-168659, WGID-169546
Change-Id: I113e49a6240e68e38de513c895e01eaf692c31cd
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
if (ssid == NULL) {
if(eap_data->ssid)
g_free(eap_data->ssid);
+ g_free(eap_data);
return NULL;
}
layout = elm_layout_add(popup);
if (layout == NULL) {
+ g_free(pbc_popup_data);
return;
}
if (!passpopup) {
ERROR_LOG(UG_NAME_ERR, "Could not initialize popup");
+ g_free(pswd_popup_data);
return NULL;
}
#endif
gdata = g_try_new0(ug_genlist_data_t, 1);
- retvm_if(NULL == gdata, NULL);
+ if (gdata == NULL) {
+ if (no_wifi_device)
+ g_free(no_wifi_device->ssid);
+ return NULL;
+ }
+
gdata->device_info = wifi_device;
gdata->radio_mode = VIEWER_ITEM_RADIO_MODE_OFF;