Commit e1523cf7 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: Files were not being closed after use. Added fclose's.

parent 5a066417
......@@ -122,6 +122,7 @@ void vtkPLOT3DReader::Execute()
fclose(xyzFp);
xyzFp = fopen(this->XYZFilename, "rb");
error = this->ReadBinaryGrid(xyzFp,output);
fclose(xyzFp);
}
if ( error )
......@@ -152,6 +153,7 @@ void vtkPLOT3DReader::Execute()
fclose(QFp);
QFp = fopen(this->QFilename, "rb");
error = this->ReadBinarySolution(QFp,output);
fclose(QFp);
}
if ( error )
......@@ -183,6 +185,7 @@ void vtkPLOT3DReader::Execute()
fclose(funcFp);
funcFp = fopen(this->FunctionFilename, "rb");
error = this->ReadBinaryFunctionFile(funcFp,output);
fclose(funcFp);
}
if ( error )
......@@ -212,6 +215,7 @@ void vtkPLOT3DReader::Execute()
fclose(funcFp);
funcFp = fopen(this->VectorFunctionFilename, "rb");
error = this->ReadBinaryVectorFunctionFile(funcFp,output);
fclose(funcFp);
}
if ( error )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment