Index: /trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c
===================================================================
--- /trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c	(revision 15242)
+++ /trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c	(revision 15243)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-09-28 21:04:55 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-10-08 18:52:49 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -164,7 +164,17 @@
         modelType = pmModelClassGetType (PSF_NAME);
     }
+    assert (modelType > -1);
 
     psArray *table = psFitsReadTable (fits);
     // validate a single row of the table (must match SMP)
+
+    // XXX test return values 
+
+    // XXX we have a memory problem, which is illustrated here: if I allocate the sources array
+    // (line 1) before freeing the table, the data is not really freed (but not a leak?)  if I
+    // allocate the sources array *after* freeing the table, the data is actually freed
+    // psArray *fooSources = psArrayAllocEmpty (10000);
+    // psFree (table);
+    // return (fooSources);
 
     psArray *sources = psArrayAlloc (table->n);
