Преглед изворни кода

examples/sched_ctx/parallel_tasks_reuse_handle.c: free memory

Nathalie Furmento пре 8 година
родитељ
комит
e18cd4475a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      examples/sched_ctx/parallel_tasks_reuse_handle.c

+ 2 - 1
examples/sched_ctx/parallel_tasks_reuse_handle.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2015 INRIA
- * Copyright (C) 2015 CNRS
+ * Copyright (C) 2015, 2016 CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -132,6 +132,7 @@ void parallel_task_deinit()
 	for (i=0; i<2;i++)
 		starpu_sched_ctx_delete(contexts[i].id);
 	free(contexts);
+	free(main_context.cpus);
 }
 
 /* Codelet SUM */