Selaa lähdekoodia

examples/sched_ctx/parallel_tasks_reuse_handle.c: free memory

Nathalie Furmento 8 vuotta sitten
vanhempi
commit
e18cd4475a
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
  * Copyright (C) 2015 INRIA
  * Copyright (C) 2015 INRIA
- * Copyright (C) 2015 CNRS
+ * Copyright (C) 2015, 2016 CNRS
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * 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
  * 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++)
 	for (i=0; i<2;i++)
 		starpu_sched_ctx_delete(contexts[i].id);
 		starpu_sched_ctx_delete(contexts[i].id);
 	free(contexts);
 	free(contexts);
+	free(main_context.cpus);
 }
 }
 
 
 /* Codelet SUM */
 /* Codelet SUM */