From ec5e5f2abb53923b6dc9964d25d37082af7c0f3f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 20 May 2014 17:03:22 +0200 Subject: [PATCH] Free powerPeak which is unused here. --- src/surf/workstation_ptask_L07.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/surf/workstation_ptask_L07.cpp b/src/surf/workstation_ptask_L07.cpp index 85b0ac80b2..f7b460abf8 100644 --- a/src/surf/workstation_ptask_L07.cpp +++ b/src/surf/workstation_ptask_L07.cpp @@ -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.", -- 2.20.1