Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a cleanup callback to surf_resource_t, useful to free data allocated in cpu models
[simgrid.git] / src / surf / workstation_ptask_L07.c
index 9d46e74..eb62dcf 100644 (file)
@@ -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);