Reverting some previous changes

This commit is contained in:
Lew Rossman
2019-03-05 19:07:55 -05:00
parent f2c0718819
commit 09d6c7ea5d
2 changed files with 5 additions and 5 deletions

View File

@@ -819,13 +819,13 @@ int DLLEXPORT EN_closeQ(EN_Project p)
if (!p->Openflag) return 102;
closequal(p);
p->quality.OpenQflag = FALSE;
/*
if (p->outfile.OutFile != NULL)
{
fclose(p->outfile.OutFile);
p->outfile.OutFile = NULL;
}
*/
return 0;
}

View File

@@ -545,7 +545,7 @@ int writeresults(Project *pr)
if (nnv == 0 && nlv == 0) return errcode;
// Return if no output file
if (outFile == NULL) outFile = fopen(pr->outfile.OutFname, "rb");
// if (outFile == NULL) outFile = fopen(pr->outfile.OutFname, "rb");
if (outFile == NULL) return 106;
// Allocate memory for output variables:
@@ -587,14 +587,14 @@ int writeresults(Project *pr)
time->Htime += time->Rstep;
}
}
/*
// Free output file
if (outFile != NULL)
{
fclose(outFile);
outFile = NULL;
}
*/
// Free allocated memory
for (j = 0; j < m; j++) free(x[j]);
free(x);