Index: trunk/psphot/src/psphotDeblendSatstars.c
===================================================================
--- trunk/psphot/src/psphotDeblendSatstars.c	(revision 25852)
+++ trunk/psphot/src/psphotDeblendSatstars.c	(revision 25885)
@@ -49,5 +49,8 @@
 	psVector *xVec = contour->data[0];
 	psVector *yVec = contour->data[1];
-	if (xVec->n < 5) continue;
+	if (xVec->n < 5) {
+	    psFree(contour);
+	    continue;
+	}
 
 	// find the center of the contour (let's just use mid[x,y])
