X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/152117af2fbcf4c99d0da5d10a6813aac7eee007..693515c53d38d9dd1ee48ce080e9259356ba6583:/src/surf/workstation_ptask_L07.c diff --git a/src/surf/workstation_ptask_L07.c b/src/surf/workstation_ptask_L07.c index 9d46e741c4..f77530b1ac 100644 --- a/src/surf/workstation_ptask_L07.c +++ b/src/surf/workstation_ptask_L07.c @@ -668,7 +668,7 @@ static void* ptask_cpu_create_resource(const char *name, double power_scale, name); cpu = (cpu_L07_t) surf_resource_new(sizeof(s_cpu_L07_t), - surf_workstation_model, name,cpu_properties); + surf_workstation_model, name,cpu_properties, NULL); cpu->type = SURF_WORKSTATION_RESOURCE_CPU; cpu->info = xbt_lib_get_or_null(host_lib, name, ROUTING_HOST_LEVEL); @@ -700,7 +700,7 @@ static void ptask_parse_cpu_init(sg_platf_host_cbarg_t host) { double power_peak = xbt_dynar_get_as(host->power_peak, host->pstate, double); //cpu->power_peak = power_peak; - + xbt_dynar_free(&(host->power_peak)); /* kill memory leak */ ptask_cpu_create_resource( host->id, power_peak,