Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix delete/free mismatch.
[simgrid.git] / src / surf / surf_routing_full.cpp
index 814aba7..23b320f 100644 (file)
@@ -61,7 +61,7 @@ AsFull::~AsFull(){
   /* Delete routing table */
   for (i = 0; i < table_size; i++)
     for (j = 0; j < table_size; j++)
-      delete TO_ROUTE_FULL(i,j);
+      xbt_free(TO_ROUTE_FULL(i,j));
   xbt_free(p_routingTable);
 }