Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memleak
[simgrid.git] / src / surf / surf_routing_full.cpp
index 85551c8..835583f 100644 (file)
@@ -62,8 +62,7 @@ AsFull::~AsFull(){
   for (i = 0; i < table_size; i++)
     for (j = 0; j < table_size; j++) {
       if (TO_ROUTE_FULL(i,j)){
   for (i = 0; i < table_size; i++)
     for (j = 0; j < table_size; j++) {
       if (TO_ROUTE_FULL(i,j)){
-       if (TO_ROUTE_FULL(i,j)->link_list)
-          xbt_dynar_free(&TO_ROUTE_FULL(i,j)->link_list);
+        xbt_dynar_free(&TO_ROUTE_FULL(i,j)->link_list);
         xbt_free(TO_ROUTE_FULL(i,j));
       }
     }
         xbt_free(TO_ROUTE_FULL(i,j));
       }
     }