Browse Source

fix memleak

Samuel Thibault 8 years ago
parent
commit
f5d60b4af8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/sched_ctx/two_cpu_contexts.c

+ 3 - 0
examples/sched_ctx/two_cpu_contexts.c

@@ -112,5 +112,8 @@ int main(int argc, char **argv)
 	starpu_sched_ctx_delete(sched_ctx1);
 	starpu_sched_ctx_delete(sched_ctx1);
 	starpu_sched_ctx_delete(sched_ctx2);
 	starpu_sched_ctx_delete(sched_ctx2);
 	starpu_shutdown();
 	starpu_shutdown();
+	free(procs);
+	free(procs1);
+	free(procs2);
 	return 0;
 	return 0;
 }
 }