Index: trunk/psLib/src/image/psImageIO.c
===================================================================
--- trunk/psLib/src/image/psImageIO.c	(revision 997)
+++ trunk/psLib/src/image/psImageIO.c	(revision 1073)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-11 03:45:07 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-23 23:00:15 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,4 +19,5 @@
 #include "psImageIO.h"
 #include "psError.h"
+#include "psMemory.h"
 
 psImage* psImageReadSection(psImage* output, int col, int row, int numCols,
@@ -39,5 +40,5 @@
     if (filename == NULL) {
         psError(__func__,"Must specify filename; it can not be NULL.");
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -49,5 +50,5 @@
         psError(__func__,"Could not open file '%s'. (%s)",
                 filename, fitsErr);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -61,5 +62,5 @@
             psError(__func__,"Could not index to '%s' HDU for file %s. (%s)",
                     extname, filename, fitsErr);
-            psImageFree(output);
+            psFree(output);
             return NULL;
         }
@@ -71,5 +72,5 @@
             psError(__func__,"Could not index to HDU #%d for file %s. (%s)",
                     extnum, filename, fitsErr);
-            psImageFree(output);
+            psFree(output);
             return NULL;
         }
@@ -83,5 +84,5 @@
         psError("Could not determine image data type of '%s'. (%s)",
                 filename, fitsErr);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -94,5 +95,5 @@
         psError("Could not determine dimensions of '%s'. (%s)",
                 filename,fitsErr);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -104,5 +105,5 @@
         psError("Dimensions of '%s' are not supported (NAXIS=%i).",
                 filename, nAxis);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -115,5 +116,5 @@
         psError("Could not determine image size of '%s'. (%s)",
                 filename,fitsErr);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -181,5 +182,5 @@
         psError(__func__,"Unsupported bitpix value (%d) in FITS file %s.",
                 bitPix,filename);
-        psImageFree(output);
+        psFree(output);
         return NULL;
     }
@@ -187,5 +188,5 @@
     if (fits_read_subset(fptr, fitsDatatype, firstPixel, lastPixel, increment,
                          NULL, output->data.V[0], &anynull, &status) != 0) {
-        psImageFree(output);
+        psFree(output);
         (void)fits_get_errstatus(status, fitsErr);
         status = 0;
