瀏覽代碼

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)