/*Creating the profile property hash for for internal handling*/
/*Create a hash table for the profile property as all fucntion already use ghash table */
- profile_property = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
+ profile_property = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
g_variant_iter_init(&g_iter, property);
while (g_variant_iter_next(&g_iter, "{ss}", &g_key, &g_value)) {
if (!enabled) {
gchar *ipv4 = NULL;
+ gchar *devname = NULL;
ps_dbg_ex_co(co_network, "Reset socket connections.");
tcore_ps_clear_context_id(service->co_ps, context);
ipv4 = tcore_context_get_ipv4_addr(context);
- tcore_util_reset_ipv4_socket(tcore_context_get_ipv4_devname(context), (const char *)ipv4);
+ devname = tcore_context_get_ipv4_devname(context);
+ tcore_util_reset_ipv4_socket((const char *)devname, (const char *)ipv4);
+ free(ipv4);
+ g_free(devname);
}
_ps_context_set_connected(value, enabled);