Change-Id: I1dd7fe019e60c9bf552e7cce52b3b4deaa04f116
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
bssid_scan_data_s *scan_data;
scan_data = __get_bssid_scan_data(interface_name);
- if (scan_data == NULL) {
- scan_data = g_try_new0(bssid_scan_data_s, 1);
- if (scan_data == NULL)
- return;
-
- scan_data->interface_name = g_strdup(interface_name);
- }
+ if (scan_data == NULL)
+ return;
scan_data->scan_info_list = g_slist_append(scan_data->scan_info_list, scan_info);
}
wifi_state_notifier_unregister(notifier);
g_free(notifier->service);
g_free(notifier->user_data);
- g_free(notifier->service);
+ g_free(notifier);
}
gboolean handle_create_eap_config(Wifi *wifi, GDBusMethodInvocation *context,