Samuel Thibault лет назад: 10
Родитель
Сommit
788744e286
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      examples/ppm_downscaler/yuv_downscaler.c

+ 8 - 1
examples/ppm_downscaler/yuv_downscaler.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2011, 2013-2014  Université de Bordeaux
+ * Copyright (C) 2010-2011, 2013-2015  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
@@ -271,6 +271,13 @@ int main(int argc, char **argv)
 		starpu_data_unregister(new_frame_v_handle[frame]);
 	}
 
+	free(frame_y_handle);
+	free(frame_u_handle);
+	free(frame_v_handle);
+	free(new_frame_y_handle);
+	free(new_frame_u_handle);
+	free(new_frame_v_handle);
+
 	/* There is an implicit barrier: the unregister methods will block
 	 * until the computation is done and that the result was put back into
 	 * memory. */