From: Arnaud Giersch Date: Mon, 23 Sep 2013 19:39:56 +0000 (+0200) Subject: The full dynar is not used here, delete it. X-Git-Tag: v3_9_90~104^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/87284972e35c062dfd0febe38b9841d55c3dedcf The full dynar is not used here, delete it. --- diff --git a/src/surf/cpu_ti.c b/src/surf/cpu_ti.c index 629faaf7bf..eb298cba3f 100644 --- a/src/surf/cpu_ti.c +++ b/src/surf/cpu_ti.c @@ -165,8 +165,8 @@ static void* cpu_ti_create_resource(const char *name, xbt_dynar_t power_peak, cpu->action_set = xbt_swag_new(xbt_swag_offset(ti_action, cpu_list_hookup)); - xbt_dynar_get_cpy(power_peak, 0, &cpu->power_peak); + xbt_dynar_free(&power_peak); /* kill memory leak */ //cpu->power_peak = power_peak; cpu->pstate = pstate; XBT_DEBUG("CPU create: peak=%lf, pstate=%d",cpu->power_peak, cpu->pstate);