Index: trunk/ppSub/src/ppSubLoop.c
===================================================================
--- trunk/ppSub/src/ppSubLoop.c	(revision 30066)
+++ trunk/ppSub/src/ppSubLoop.c	(revision 30619)
@@ -26,4 +26,5 @@
   pmReadout *out = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT");
   psphotSaveImage (NULL, out->image, name);
+  psFree(view);
   return true;
 }
@@ -111,4 +112,5 @@
         goto ESCAPE;
     }
+
     if (data->quality) {
         // Can't do anything at all
@@ -257,6 +259,8 @@
 	psError(psErrorCodeLast(), false, "Unable to generate mask statistics");
 	success = false;
+        psFree(view);
         goto ESCAPE;
       }
+      psFree(view);
     }
     // dumpout(config, "diff.4.fits");
