X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e082217ec28452a0f8fdb0207d8792f0b0932dc..c215f8139368ac8b172ad664c05d4f2b4211a961:/src/surf/surf.c?ds=sidebyside diff --git a/src/surf/surf.c b/src/surf/surf.c index be19fb7433..19e441e82a 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -369,6 +369,12 @@ static XBT_INLINE void routing_asr_host_free(void *p) xbt_free(elm); } +static XBT_INLINE void routing_asr_prop_free(void *p) +{ + xbt_dict_t elm = p; + xbt_dict_free(&elm); +} + void sg_version(int *ver_major,int *ver_minor,int *ver_patch) { *ver_major = SIMGRID_VERSION_MAJOR; *ver_minor = SIMGRID_VERSION_MINOR; @@ -388,6 +394,7 @@ void surf_init(int *argc, char **argv) XBT_DEBUG("Add routing levels"); ROUTING_HOST_LEVEL = xbt_lib_add_level(host_lib,routing_asr_host_free); ROUTING_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_host_free); + ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_prop_free); XBT_DEBUG("Add SURF levels"); SURF_CPU_LEVEL = xbt_lib_add_level(host_lib,surf_resource_free);