X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b4ab767c827a58dc5efaa5ee22ab6050d4b6172c..b784c77ac5599c578f0ff00d6102222b286b0833:/src/surf/cpu_ti.c?ds=sidebyside diff --git a/src/surf/cpu_ti.c b/src/surf/cpu_ti.c index 629faaf7bf..9a61031cf1 100644 --- a/src/surf/cpu_ti.c +++ b/src/surf/cpu_ti.c @@ -1,5 +1,5 @@ -/* Copyright (c) 2009, 2010. The SimGrid Team. +/* Copyright (c) 2009-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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);