Index: trunk/psModules/src/camera/pmFPA.c
===================================================================
--- trunk/psModules/src/camera/pmFPA.c	(revision 7017)
+++ trunk/psModules/src/camera/pmFPA.c	(revision 7060)
@@ -12,6 +12,6 @@
 * XXX: Should we implement non-linear cell->chip transforms?
 *
-*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-05-01 01:55:43 $
+*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-05-04 03:57:32 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -173,4 +173,31 @@
 }
 
+void pmCellFreeData(pmCell *cell)
+{
+    pmCellFreeReadouts(cell);
+    if (cell->hdu) {
+        psFree(cell->hdu->images);
+    }
+}
+
+void pmChipFreeData(pmChip *chip)
+{
+    for (int i = 0; i < chip->cells->n; i++) {
+        pmCellFreeData(chip->cells->data[i]);
+    }
+    if (chip->hdu) {
+        psFree(chip->hdu->images);
+    }
+}
+
+void pmFPAFreeData(pmFPA *fpa)
+{
+    for (int i = 0; i < fpa->chips->n; i++) {
+        pmChipFreeData(fpa->chips->data[i]);
+    }
+    if (fpa->hdu) {
+        psFree(fpa->hdu->images);
+    }
+}
 
 pmReadout *pmReadoutAlloc(pmCell *cell)
Index: trunk/psModules/src/camera/pmFPA.h
===================================================================
--- trunk/psModules/src/camera/pmFPA.h	(revision 7017)
+++ trunk/psModules/src/camera/pmFPA.h	(revision 7060)
@@ -7,6 +7,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-05-01 01:55:43 $
+*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-05-04 03:57:32 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -151,4 +151,7 @@
 void pmCellFreeReadouts(pmCell *cell);
 void pmChipFreeCells(pmChip *chip);
+void pmCellFreeData(pmCell *cell);
+void pmChipFreeData(pmChip *chip);
+void pmFPAFreeData(pmFPA *fpa);
 
 /** Allocates a pmReadout
