Index: trunk/psModules/src/astrom/pmAstrometryWCS.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 10612)
+++ trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 10616)
@@ -7,6 +7,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-12-10 18:30:07 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-11 16:55:06 $
  *
  *  Copyright 2006 Institute for Astronomy, University of Hawaii
@@ -36,4 +36,5 @@
         return;
     psFree (wcs->trans);
+    psFree (wcs->toSky);
 }
 
@@ -45,4 +46,5 @@
 
     wcs->trans = psPlaneTransformAlloc (nXorder, nYorder);
+    wcs->toSky = NULL;
 
     memset (wcs->ctype1, 0, PM_ASTROM_WCS_TYPE_SIZE);
@@ -226,4 +228,5 @@
     }
     psLogMsg ("psastro", 2, "warning: missing rotation matrix?\n");
+    psFree (wcs);
     return NULL;
 }
