소스 검색

Fix spurious deinitialization of the task that we will reuse

Samuel Thibault 13 년 전
부모
커밋
f2fcd3fc79
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      tests/core/static_restartable_tag.c

+ 2 - 1
tests/core/static_restartable_tag.c

@@ -88,9 +88,10 @@ int main(int argc, char **argv)
 
 		ret = starpu_tag_wait(tag);
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_tag_wait");
-		starpu_task_deinit(&task);
 	}
 
+	starpu_task_deinit(&task);
+
 	gettimeofday(&end, NULL);
 
 	timing = (double)((end.tv_sec - start.tv_sec)*1000000