ソースを参照

Fix really closing model with enable-fast

Samuel Thibault 10 年 前
コミット
6a0262bf5f
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      src/core/perfmodel/perfmodel_history.c

+ 2 - 1
src/core/perfmodel/perfmodel_history.c

@@ -1058,7 +1058,8 @@ int starpu_perfmodel_load_symbol(const char *symbol, struct starpu_perfmodel *mo
 	parse_model_file(f, model, 1);
 	_starpu_frdunlock(f);
 
-	STARPU_ASSERT(fclose(f) == 0);
+	res = fclose(f);
+	STARPU_ASSERT(res == 0);
 
 	return 0;
 }