static void cpu_free(void *cpu)
{
free(((cpu_Cas01_t) cpu)->name);
+ xbt_dict_free(&(((cpu_Cas01_t)cpu)->properties));
free(cpu);
}
static void link_free(void *nw_link)
{
free(((link_CM02_t) nw_link)->name);
+ xbt_dict_free(&(((link_CM02_t)nw_link)->properties));
free(nw_link);
}
static void link_free(void *nw_link)
{
free(((network_link_GTNETS_t) nw_link)->name);
+ xbt_dict_free(&(((network_link_GTNETS_t)nw_link)->properties));
free(nw_link);
}
gtnets_link->lat_current = lat;
gtnets_link->id = link_count;
/* Add the properties */
- gtnets_link->properties = current_property_set;
+ gtnets_link->properties = props;
xbt_dict_set(link_set, name, gtnets_link, link_free);
static void cpu_free(void *cpu)
{
free(((cpu_L07_t) cpu)->name);
+ xbt_dict_free(&(((cpu_L07_t)cpu)->properties));
free(cpu);
}
static void link_free(void *nw_link)
{
free(((link_L07_t) nw_link)->name);
+ xbt_dict_free(&(((link_L07_t)nw_link)->properties));
free(nw_link);
}