Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free powerPeak which is unused here.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 20 May 2014 15:03:22 +0000 (17:03 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 20 May 2014 16:00:58 +0000 (18:00 +0200)
src/surf/workstation_ptask_L07.cpp

index 85b0ac8..f7b460a 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.",