소스 검색

closing the file when finished writing

Luka Stanisic 9 년 전
부모
커밋
c0a665004a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/core/perfmodel/multiple_regression.c

+ 3 - 0
src/core/perfmodel/multiple_regression.c

@@ -70,6 +70,9 @@ static void dump_multiple_regression_list(double *mx, double *my, unsigned ncoef
 		ptr = ptr->next;
 		i++;
 	}
+
+	if (PRINT)
+		fclose(f);
 }
 
 static long find_long_list_size(struct starpu_perfmodel_history_list *list_history)