Index: /trunk/psModules/src/detrend/pmFringeStats.c
===================================================================
--- /trunk/psModules/src/detrend/pmFringeStats.c	(revision 7886)
+++ /trunk/psModules/src/detrend/pmFringeStats.c	(revision 7887)
@@ -3,6 +3,6 @@
  *  @author Eugene Magnier, IfA
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-13 00:19:04 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-13 02:21:25 $
  *
  *  Copyright 2004 IfA
@@ -185,5 +185,5 @@
     if (!mdok || SCALAR <= 0) { \
         psError(PS_ERR_IO, true, "Unable to find " NAME " in header of extension %s.\n", extname); \
-        psFree(header); \
+        psFree(headerCopy); \
         return NULL; \
     }
@@ -195,5 +195,5 @@
     READ_SCALAR(nX, "PSFRNGNX");
     READ_SCALAR(nY, "PSFRNGNY");
-    psFree(header);
+    psFree(headerCopy);
 
     // Now the vectors: x, y
