Index: trunk/psastro/src/psastroMosaicGetGrads.c
===================================================================
--- trunk/psastro/src/psastroMosaicGetGrads.c	(revision 15670)
+++ trunk/psastro/src/psastroMosaicGetGrads.c	(revision 15671)
@@ -44,4 +44,5 @@
 	psFree (region);
     }
+    psFree (view);
     return (grads);
 }
Index: trunk/psastro/src/psastroMosaicGradients.c
===================================================================
--- trunk/psastro/src/psastroMosaicGradients.c	(revision 15670)
+++ trunk/psastro/src/psastroMosaicGradients.c	(revision 15671)
@@ -63,4 +63,6 @@
     if (!status) {
 	psError(PSASTRO_ERR_UNKNOWN, false, "failed to find single-chip fit order\n");
+	psFree (gradients);
+	psFree (view);
         return false;
     }
@@ -80,4 +82,6 @@
     if (!status) {
 	psError(PS_ERR_IO, false, "Failed to lookup pixel scale"); 
+	psFree (gradients);
+	psFree (view);
 	return false; 
     } 
Index: trunk/psastro/src/psastroMosaicSetMatch.c
===================================================================
--- trunk/psastro/src/psastroMosaicSetMatch.c	(revision 15670)
+++ trunk/psastro/src/psastroMosaicSetMatch.c	(revision 15671)
@@ -15,4 +15,5 @@
     if (!status) { 
 	psError(PS_ERR_IO, false, "Failed to lookup matching radius: %s", radiusWord); 
+	psFree (view);
 	return false; 
     } 
@@ -21,7 +22,9 @@
 	if (iteration == 0) {
 	    psError(PS_ERR_IO, false, "Invalid match radius for first iteration: %s", radiusWord); 
+	    psFree (view);
 	    return false; 
 	} 
 	psWarning ("skipping match for iteration %d\n", iteration);
+	psFree (view);
 	return true;
     }
Index: trunk/psastro/src/psastroOneChip.c
===================================================================
--- trunk/psastro/src/psastroOneChip.c	(revision 15670)
+++ trunk/psastro/src/psastroOneChip.c	(revision 15671)
@@ -41,5 +41,5 @@
 	}
 
-	// find initial offset / rotation
+	// find initial offset / rotation / scale
 	pmAstromStats *gridStats = pmAstromGridMatch (gridStars, refstars, recipe);
 	if (gridStats == NULL) {
