소스 검색

fix memory leak

Samuel Thibault 9 년 전
부모
커밋
619f81bb87
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/core/topology.c

+ 3 - 0
src/core/topology.c

@@ -1229,6 +1229,9 @@ void _starpu_destroy_machine_config(struct _starpu_machine_config *config)
 	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];
+#ifdef STARPU_HAVE_HWLOC
+		hwloc_bitmap_free(combined_worker->hwloc_cpu_set);
+#endif
 		free(combined_worker->perf_arch.devices);
 	}