ret = __get_mac_address(&mac_address);
if ((ret != TRUE) || (strlen(mac_address) == 0)) {
ERR("Cannot get WIFI MAC address");
+ g_free(mac_address);
return FALSE;
}
tmp_dst = (unsigned char *)g_try_malloc0(length + 1);
if (!tmp_dst) {
ERR("failed to allocate memory");
+ g_variant_iter_free(iter_copy);
return 0;
}