Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use xbt_malloc (and friends) instead of direct malloc()
[simgrid.git] / src / surf / fair_bottleneck.c
index ce44b58fb0200cc70e54e46d276584a49556f107..aa9c4fa63404cc508b040db600b64d341b4046b2 100644 (file)
@@ -172,9 +172,7 @@ void bottleneck_solve(lmm_system_t sys)
     }
   } while (xbt_swag_size(var_list));
 
-  xbt_swag_foreach_safe(cnst, cnst_next, cnst_list) {
-    xbt_swag_remove(cnst, cnst_list);
-  }
+  xbt_swag_reset(cnst_list);
   sys->modified = 0;
   if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) {
     XBT_DEBUG("Fair bottleneck done");