Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Libs created in surf_init should be destroyed be surf_exit
[simgrid.git] / src / surf / surf.c
index e8d350f..74f7519 100644 (file)
@@ -382,9 +382,14 @@ void surf_exit(void)
   if (surf_path)
     xbt_dynar_free(&surf_path);
 
+  xbt_lib_free(&host_lib);
+  xbt_lib_free(&link_lib);
+  xbt_lib_free(&as_router_lib);
+
   tmgr_finalize();
   surf_parse_lex_destroy();
   surf_parse_free_callbacks();
+
   NOW = 0;                      /* Just in case the user plans to restart the simulation afterward */
 }