Explorar o código

src/core/topology.c: free allocated memory for combined workers

Nathalie Furmento %!s(int64=11) %!d(string=hai) anos
pai
achega
2153d433d0
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/core/topology.c

+ 7 - 0
src/core/topology.c

@@ -1555,6 +1555,13 @@ _starpu_destroy_topology (
 #endif
 #endif
 	}
 	}
 
 
+	unsigned combined_worker_id;
+	for(combined_worker_id=0 ; combined_worker_id < config->topology.ncombinedworkers ; combined_worker_id++)
+	{
+		struct _starpu_combined_worker *combined_worker = &config->combined_workers[combined_worker_id];
+		free(combined_worker->perf_arch.devices);
+	}
+
 #ifdef STARPU_HAVE_HWLOC
 #ifdef STARPU_HAVE_HWLOC
 	hwloc_topology_destroy(config->topology.hwtopology);
 	hwloc_topology_destroy(config->topology.hwtopology);
 #endif
 #endif