Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please AddressSan: match new/delete and plug a memleak
[simgrid.git] / src / surf / plugins / host_energy.cpp
index 124d6f2..a84acc7 100644 (file)
@@ -331,6 +331,7 @@ static void onSimulationEnd()
   }
   XBT_INFO("Total energy consumption: %f Joules (used hosts: %f Joules; unused/idle hosts: %f)",
            total_energy, used_hosts_energy, total_energy - used_hosts_energy);
+  xbt_free(host_list);
 }
 
 /* **************************** Public interface *************************** */