Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup: move these frees to the right location.
[simgrid.git] / src / surf / surfxml_parse.c
index 56325f5..9e07bba 100644 (file)
@@ -259,7 +259,6 @@ void ETag_surfxml_platform(void)
   surfxml_call_cb_functions(ETag_surfxml_platform_cb_list);
 
   xbt_dict_free(&random_data_list);
   surfxml_call_cb_functions(ETag_surfxml_platform_cb_list);
 
   xbt_dict_free(&random_data_list);
-  xbt_dict_free(&set_list);
 }
 
 void STag_surfxml_host(void)
 }
 
 void STag_surfxml_host(void)
@@ -578,6 +577,9 @@ static void free_data(void)
   xbt_dict_free(&route_table);
   route_link_list = NULL;
 
   xbt_dict_free(&route_table);
   route_link_list = NULL;
 
+  xbt_dict_free(&route_multi_table);
+  xbt_dynar_free(&route_multi_elements);
+
   xbt_dict_foreach(set_list, cursor, key, data) {
     xbt_dynar_t set = (xbt_dynar_t)data;
     char *name;
   xbt_dict_foreach(set_list, cursor, key, data) {
     xbt_dynar_t set = (xbt_dynar_t)data;
     char *name;
@@ -1012,10 +1014,9 @@ static void convert_route_multi_to_routes(void)
        }     
       }
     }
        }     
       }
     }
+    xbt_dynar_free(&keys);
   }  
   pop_surfxml_bufferstack(0);
   }  
   pop_surfxml_bufferstack(0);
-  xbt_dict_free(&route_multi_table);
-  xbt_dynar_free(&route_multi_elements);
 }
 
 /* Cluster tag functions */
 }
 
 /* Cluster tag functions */