Index: trunk/psastro/src/psastroMosaicSetMatch.c
===================================================================
--- trunk/psastro/src/psastroMosaicSetMatch.c	(revision 10830)
+++ trunk/psastro/src/psastroMosaicSetMatch.c	(revision 10880)
@@ -8,7 +8,4 @@
     pmFPAview *view = pmFPAviewAlloc (0);
     char radiusWord[64];
-
-    FILE *g1 = fopen ("raw.ps.dat", "w");
-    FILE *g2 = fopen ("ref.ps.dat", "w");
 
     // use small radius to match stars (assume starting astrometry is good)
@@ -47,29 +44,11 @@
 		psTrace ("psastro", 4, "Matched %ld refstars\n", matches->n);
 
-		for (int i = 0; i < matches->n; i++) {
-		    pmAstromMatch *match = matches->data[i];
-
-		    pmAstromObj *raw = rawstars->data[match->raw];
-		    fprintf (g1, "%d %f %f  %f %f  %f %f  %f %f\n", i, 
-			     DEG_RAD*raw->sky->r, DEG_RAD*raw->sky->d, 
-			     raw->TP->x, raw->TP->y, 
-			     raw->FP->x, raw->FP->y, 
-			     raw->chip->x, raw->chip->y);
-
-		    pmAstromObj *ref = refstars->data[match->ref];
-		    fprintf (g2, "%d %f %f  %f %f  %f %f  %f %f\n", i, 
-			     DEG_RAD*ref->sky->r, DEG_RAD*ref->sky->d, 
-			     ref->TP->x, ref->TP->y, 
-			     ref->FP->x, ref->FP->y, 
-			     ref->chip->x, ref->chip->y);
-		}
-
 		// XXX drop the old one
 		psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.MATCH", PS_DATA_ARRAY | PS_META_REPLACE, "astrometry matches", matches);
+		psFree (matches);
 	    }
 	}
     }
-    fclose (g1);
-    fclose (g2);
+    psFree (view);
     return true;
 }
