浏览代码

fix memleak

Samuel Thibault 8 年之前
父节点
当前提交
f5d60b4af8
共有 1 个文件被更改,包括 3 次插入0 次删除
  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_ctx2);
 	starpu_shutdown();
+	free(procs);
+	free(procs1);
+	free(procs2);
 	return 0;
 }