Index: trunk/psModules/src/astrom/pmAstrometryWCS.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 32808)
+++ trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 34271)
@@ -565,4 +565,5 @@
     // free an existing toFPA structure
     psFree (chip->toFPA);
+    assert (chip->toFPA == NULL);
     chip->toFPA = toFPA;
 
@@ -571,4 +572,5 @@
 
     psFree (chip->fromFPA);
+    assert (chip->fromFPA == NULL);
     chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50);
     psFree (region);
@@ -707,4 +709,5 @@
         psError(PS_ERR_UNKNOWN, false, "Unable to solve for TPA center.");
         psFree (toTPA);
+        psFree (tpa1);
         psFree (wcs);
         return NULL;
