X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f193fed57024f1b113f3ec07500a76e1ed5b76b1..c9fa3b2f54b1793ba420c06fed2f7bf4ec04b30f:/src/surf/surf.c diff --git a/src/surf/surf.c b/src/surf/surf.c index f6d9f205be..142e0bcda5 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -198,7 +198,7 @@ int find_model_description(s_surf_model_description_t * table, for (i = 1; table[i].name; i++) { name_list = xbt_realloc(name_list, - strlen(name_list) + strlen(table[i].name) + 2); + strlen(name_list) + strlen(table[i].name) + 3); strcat(name_list, ", "); strcat(name_list, table[i].name); } @@ -366,6 +366,7 @@ void surf_exit(void) xbt_dynar_foreach(model_list, iter, model) model->model_private->finalize(); xbt_dynar_free(&model_list); + routing_exit(); if (maxmin_system) { lmm_system_free(maxmin_system);