Explorar el Código

port r14766 from trunk: free leaked memory

Samuel Thibault hace 10 años
padre
commit
f2b621e42b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
 }