소스 검색

minmax_reduction example: free memory at the end of the test.

Cyril Roelandt 13 년 전
부모
커밋
20bde3b77b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/reductions/minmax_reduction.c

+ 2 - 0
examples/reductions/minmax_reduction.c

@@ -195,6 +195,8 @@ int main(int argc, char **argv)
 
 	STARPU_ASSERT(minmax[0] <= minmax[1]);
 
+	free(x);
+	free(x_handles);
 	starpu_shutdown();
 
 	return 0;