Index: /trunk/psLib/src/types/psMetadataConfig.c
===================================================================
--- /trunk/psLib/src/types/psMetadataConfig.c	(revision 9917)
+++ /trunk/psLib/src/types/psMetadataConfig.c	(revision 9918)
@@ -10,6 +10,6 @@
 *  @author Eric Van Alst, MHPCC
 *
-*  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-11-09 03:06:56 $
+*  @version $Revision: 1.115 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-11-09 03:22:38 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1784,6 +1784,10 @@
     }
     fprintf(file, "%s", fileString);
-    fclose(file);
     psFree(fileString);
+    if (fclose(file) == EOF) {
+        psError(PS_ERR_IO, true,
+                "Failed to close file, %s\n", filename);
+        return false;
+    }
     return true;
 }
