浏览代码

port r14766 from trunk: free leaked memory

Samuel Thibault 10 年之前
父节点
当前提交
f2b621e42b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/worker_collections/worker_tree_example.c

+ 2 - 1
examples/worker_collections/worker_tree_example.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2014  Université de Bordeaux
+ * Copyright (C) 2010-2015  Université de Bordeaux
  * Copyright (C) 2010-2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -96,6 +96,7 @@ int main()
 
 	co->deinit(co);
 	starpu_shutdown();
+	free(co);
 
 	return 0;
 }