Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove host_lib, link_lib and as_router_lib from SD_exit or MSG_clean.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 24 Mar 2011 10:35:57 +0000 (10:35 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 24 Mar 2011 10:35:57 +0000 (10:35 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9835 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/global.c
src/simdag/sd_global.c
src/surf/surf.c

index 7df2150..f764ade 100644 (file)
@@ -179,6 +179,12 @@ int MSG_process_killall(int reset_PIDs)
 MSG_error_t MSG_clean(void)
 {
 
+// Exit the LIB host_lib
+xbt_lib_free(&host_lib);
+xbt_lib_free(&link_lib);
+xbt_lib_free(&as_router_lib);
+
+
 #ifdef HAVE_TRACING
   TRACE_surf_release();
 #endif
index 30f5d47..465af87 100644 (file)
@@ -420,6 +420,11 @@ void SD_exit(void)
     xbt_swag_free(sd_global->done_task_set);
     xbt_swag_free(sd_global->failed_task_set);
 
+    // Exit the LIB host_lib
+    xbt_lib_free(&host_lib);
+    xbt_lib_free(&link_lib);
+    xbt_lib_free(&as_router_lib);
+
     xbt_free(sd_global);
     sd_global = NULL;
 
index e4672f4..de300f9 100644 (file)
@@ -390,10 +390,6 @@ void surf_exit(void)
   surf_parse_lex_destroy();
   surf_parse_free_callbacks();
   NOW = 0;                      /* Just in case the user plans to restart the simulation afterward */
-  // Exit the LIB host_lib
-  xbt_lib_free(&host_lib);
-  xbt_lib_free(&link_lib);
-  xbt_lib_free(&as_router_lib);
 }
 
 void surf_presolve(void)