Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Leaks -= 2;
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 21 Sep 2017 15:18:18 +0000 (17:18 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 22 Sep 2017 07:43:51 +0000 (09:43 +0200)
src/simdag/sd_dotloader.cpp
teshsuite/msg/host_on_off_processes/host_on_off_processes.c

index 663dcb0..8e3f736 100644 (file)
@@ -212,7 +212,7 @@ xbt_dynar_t SD_dotload_generic(const char* filename, bool sequential, bool sched
 
   if(schedule){
     if (schedule_success) {
-      const sg_host_t *workstations = sg_host_list ();
+      sg_host_t* workstations = sg_host_list();
       for (auto const& elm : computers) {
         SD_task_t previous_task = nullptr;
         for (auto const& task : *elm.second) {
@@ -227,6 +227,7 @@ xbt_dynar_t SD_dotload_generic(const char* filename, bool sequential, bool sched
         }
         delete elm.second;
       }
+      xbt_free(workstations);
     } else {
       XBT_WARN("The scheduling is ignored");
       for (auto const& elm : computers)
index 9b5bcd2..52323c6 100644 (file)
@@ -230,6 +230,7 @@ int main(int argc, char *argv[])
   res = MSG_main();
 
   XBT_INFO("Simulation time %g", MSG_get_clock());
+  xbt_dynar_free(&tests);
 
   return res != MSG_OK;
 }