Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/LoadImages.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/LoadImages.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/LoadImages.c	(revision 29314)
@@ -75,4 +75,5 @@
     lastModified = getLastModified(filename);
   }
+
   return (image);
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/badimages.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/badimages.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/badimages.c	(revision 29314)
@@ -70,5 +70,5 @@
   }
   
+  FreeImages(image);
   return (TRUE);
-
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imdata.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imdata.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imdata.c	(revision 29314)
@@ -222,4 +222,5 @@
   vec[0].Nelements = N;
   REALLOCATE (vec[0].elements.Flt, opihi_flt, MAX(1,N));
+  FreeImages(image);
   return (TRUE);
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imlist.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imlist.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imlist.c	(revision 29314)
@@ -108,6 +108,6 @@
   }
 
+  FreeImages(image);
   free (subset);
-  free (image);
   return (TRUE);
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imphot.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imphot.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imphot.c	(revision 29314)
@@ -92,5 +92,5 @@
   }
 
-  free (image);
+  FreeImages(image);
   free (subset);
   return (TRUE);
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imstats.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imstats.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/imstats.c	(revision 29314)
@@ -58,4 +58,5 @@
   free (Xvec.elements.Flt);
   free (Yvec.elements.Flt);
+  FreeImages (image);
   return (TRUE);
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/skycoverage.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/skycoverage.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/skycoverage.c	(revision 29314)
@@ -179,5 +179,8 @@
   PutCoords (&coords, &buf[0].header);
 
-  if ((image = LoadImages (&Nimage)) == NULL) return (FALSE);
+  image = LoadImages(&Nimage);
+  if (image == NULL) {
+      return (FALSE);
+  }
   BuildChipMatch (image, Nimage);
 
@@ -251,6 +254,5 @@
     }
   }
-
-  free (image);
+  FreeImages(images);
   return (TRUE);
 }
Index: /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/subpix.c
===================================================================
--- /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/subpix.c	(revision 29313)
+++ /branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/subpix.c	(revision 29314)
@@ -147,8 +147,8 @@
 
   dvo_catalog_free (&catalog);
-  free (image);
   free (index);
   SkyListFree (skylist);
 
+  FreeImages(image);
   return (TRUE);
 }
