Browse Source

port r14766 from trunk: free leaked memory

Samuel Thibault 10 years ago
parent
commit
f2b621e42b
1 changed files with 2 additions and 1 deletions
  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;
 }