Index: trunk/magic/remove/src/streaksastrom.c
===================================================================
--- trunk/magic/remove/src/streaksastrom.c	(revision 21156)
+++ trunk/magic/remove/src/streaksastrom.c	(revision 21437)
@@ -1,3 +1,11 @@
 #include "streaksremove.h"
+
+static void freeAstrometry(strkAstrom *astrom)
+{
+    if (!astrom) {
+        return;
+    }
+    psFree(astrom->pt);
+}
 
 // Initialize the astrometry object for current cell
@@ -7,4 +15,5 @@
     if (!astrom) {
         astrom = psAlloc(sizeof(strkAstrom));
+        psMemSetDeallocator(astrom, (psFreeFunc) freeAstrometry);
         astrom->pt = pmAstromObjAlloc();
     }
@@ -92,4 +101,6 @@
 }
 
+
+
 void
 chipToCell(double *xCell, double *yCell, strkAstrom *astrom, double xChip, double yChip)
