소스 검색

Fix memory leaks.

Cyril Roelandt 13 년 전
부모
커밋
8d0904cd36
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tests/datawizard/reclaim.c

+ 3 - 0
tests/datawizard/reclaim.c

@@ -129,6 +129,9 @@ int main(int argc, char **argv)
 		free(host_ptr_array[i]);
 	}
 
+	free(host_ptr_array);
+	free(handle_array);
+
 	starpu_shutdown();
 
 	return EXIT_SUCCESS;