Index: trunk/stac/src/stacScales.c
===================================================================
--- trunk/stac/src/stacScales.c	(revision 3666)
+++ trunk/stac/src/stacScales.c	(revision 3673)
@@ -121,4 +121,5 @@
 	    starCoordsTransformed->data[i] = psPlaneTransformApply(NULL, starMap, starCoords->data[i]);
 	}
+	psFree(starMap);
 
 	psArray *stars = psArrayAlloc(images->n); // Array of stellar photometry vectors
@@ -175,4 +176,6 @@
 	    masks->data[i] = mask;
 	}
+	psFree(starCoords);
+	psFree(starCoordsTransformed);
 
 	// Get the scales
