Index: /trunk/psModules/src/camera/pmHDUGenerate.c
===================================================================
--- /trunk/psModules/src/camera/pmHDUGenerate.c	(revision 24768)
+++ /trunk/psModules/src/camera/pmHDUGenerate.c	(revision 24769)
@@ -390,7 +390,7 @@
     if (numReadouts == 0 || (imageType == 0 && maskType == 0 && varianceType == 0)) {
         // Nothing from which to create an HDU
-        psFree(cells);
-        psError(PS_ERR_IO, true, "Nothing from which to create an HDU\n");
-        return false;
+        // psError(PS_ERR_IO, true, "Nothing from which to create an HDU\n");
+        psWarning("Nothing from which to create an HDU, must be empty\n");
+        return true;
     }
 
@@ -504,6 +504,4 @@
         psFree(iter);
     }
-    psFree(cells);
-
     return true;
 }
@@ -615,6 +613,7 @@
                 return true;
             }
-
-            return generateHDU(hdu, cells);
+	    bool status = generateHDU(hdu, cells);
+	    psFree (cells);
+            return status;
         }
     case PM_FPA_LEVEL_CHIP:
@@ -664,5 +663,7 @@
             }
 
-            return generateHDU(hdu, cells);
+	    bool status = generateHDU(hdu, cells);
+	    psFree (cells);
+            return status;
         }
     case PM_FPA_LEVEL_FPA:
