Index: trunk/psModules/src/detrend/pmFringeStats.c
===================================================================
--- trunk/psModules/src/detrend/pmFringeStats.c	(revision 24907)
+++ trunk/psModules/src/detrend/pmFringeStats.c	(revision 24912)
@@ -855,5 +855,7 @@
     // Solve the least-squares equation
     if (!psMatrixGJSolve(A, B)) {
-        psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations.  Returning NULL.\n");
+        psLogMsg("psModules.detrend", PS_LOG_INFO, "Could not solve linear equations.  Returning NULL.\n");
+	psFree(A);
+	psFree(B);
         return false;
     }
