X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/018f0c4b9035f7e28796f298e85ab69bb88ca426..301989b17111d6a39df60385a4c2e73fcff8cd86:/src/surf/surf_routing_floyd.cpp diff --git a/src/surf/surf_routing_floyd.cpp b/src/surf/surf_routing_floyd.cpp index 0ce0fe6a8e..2f297fd65a 100644 --- a/src/surf/surf_routing_floyd.cpp +++ b/src/surf/surf_routing_floyd.cpp @@ -4,7 +4,6 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "src/surf/surf_routing_private.hpp" #include "src/surf/surf_routing_floyd.hpp" #include "src/surf/network_interface.hpp" @@ -27,17 +26,15 @@ AsFloyd::AsFloyd(const char*name) AsFloyd::~AsFloyd(){ int i, j; - int table_size; - table_size = (int)xbt_dynar_length(vertices_); + int table_size = (int)xbt_dynar_length(vertices_); if (linkTable_ == NULL) // Dealing with a parse error in the file? return; /* Delete link_table */ for (i = 0; i < table_size; i++) - for (j = 0; j < table_size; j++) { + for (j = 0; j < table_size; j++) routing_route_free(TO_FLOYD_LINK(i, j)); - } xbt_free(linkTable_); - /* Delete predecessor and cost table */ + xbt_free(predecessorTable_); xbt_free(costTable_); }