]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/workstation_ptask_L07.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free powerPeak which is unused here.
[simgrid.git] / src / surf / workstation_ptask_L07.cpp
index 85b0ac80b28066152211bf1224a4aa2b570de641..f7b460abf80260295ef128c0734aabfedfe0148e 100644 (file)
@@ -322,6 +322,7 @@ CpuPtr CpuL07Model::createCpu(const char *name,  xbt_dynar_t powerPeak,
                           xbt_dict_t cpu_properties)
 {
   double power_initial = xbt_dynar_get_as(powerPeak, pstate, double);
+  xbt_dynar_free(&powerPeak);   // kill memory leak
 
   xbt_assert(!surf_workstation_resource_priv(surf_workstation_resource_by_name(name)),
               "Host '%s' declared several times in the platform file.",