X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94a5e6c017fdcf4882fe6cb518b6005d4c8dd8ae..97f3dfe883909ad3f75c9fab7aaaf1ddde0cd7f5:/src/surf/surf.c?ds=sidebyside diff --git a/src/surf/surf.c b/src/surf/surf.c index 95cfaaf167..a4ef05aa17 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -312,18 +312,20 @@ void surf_init(int *argc, char **argv) link_lib = xbt_lib_new(); as_router_lib = xbt_lib_new(); storage_lib = xbt_lib_new(); + storage_type_lib = xbt_lib_new(); XBT_DEBUG("ADD ROUTING LEVEL"); ROUTING_HOST_LEVEL = xbt_lib_add_level(host_lib,xbt_free); ROUTING_ASR_LEVEL = xbt_lib_add_level(as_router_lib,xbt_free); ROUTING_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,xbt_free); - ROUTING_STORAGE_TYPE_LEVEL = xbt_lib_add_level(storage_lib,routing_storage_type_free); ROUTING_STORAGE_HOST_LEVEL = xbt_lib_add_level(storage_lib,routing_storage_host_free); + ROUTING_STORAGE_TYPE_LEVEL = xbt_lib_add_level(storage_type_lib,routing_storage_type_free); XBT_DEBUG("ADD SURF LEVELS"); SURF_CPU_LEVEL = xbt_lib_add_level(host_lib,surf_resource_free); SURF_WKS_LEVEL = xbt_lib_add_level(host_lib,surf_resource_free); SURF_LINK_LEVEL = xbt_lib_add_level(link_lib,surf_resource_free); + SURF_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,surf_resource_free); /* Connect our log channels: that must be done manually under windows */ XBT_LOG_CONNECT(surf_cpu, surf); @@ -419,6 +421,7 @@ void surf_exit(void) xbt_lib_free(&link_lib); xbt_lib_free(&as_router_lib); xbt_lib_free(&storage_lib); + xbt_lib_free(&storage_type_lib); tmgr_finalize(); surf_parse_lex_destroy();