Index: /branches/eam_branches/ipp-20120627/psLib/m4/ipp_stdopts.m4
===================================================================
--- /branches/eam_branches/ipp-20120627/psLib/m4/ipp_stdopts.m4	(revision 34242)
+++ /branches/eam_branches/ipp-20120627/psLib/m4/ipp_stdopts.m4	(revision 34243)
@@ -7,7 +7,7 @@
       [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
       [AC_MSG_RESULT(compile optimization enabled)
-       CFLAGS="-pipe -O2 -g -DPS_NO_TRACE"],
+          CFLAGS="-pipe -O2 -g -DPS_NO_TRACE"],
       [AC_MSG_RESULT([compile optimization disabled])
-        CFLAGS="-pipe -O0 -g"
+          CFLAGS="-pipe -O0 -g"
       ]
     )
@@ -22,5 +22,5 @@
         fi
       ],
-      [AC_MSG_RESULT([compile optimization disabled])
+      [AC_MSG_RESULT([debug build disabled])
         if test x"${CFLAGS}" == x; then
           CFLAGS="-Wall -Werror"
Index: /branches/eam_branches/ipp-20120627/psLib/src/imageops/psImageMapFit.c
===================================================================
--- /branches/eam_branches/ipp-20120627/psLib/src/imageops/psImageMapFit.c	(revision 34242)
+++ /branches/eam_branches/ipp-20120627/psLib/src/imageops/psImageMapFit.c	(revision 34243)
@@ -317,4 +317,5 @@
         psFree (A);
         psFree (B);
+	psFree (Empty);
         return true;
     }
@@ -408,4 +409,6 @@
 	if (!*pGoodFit) {
 	    psWarning ("bad fit to image map, try something else");
+            psFree(resid);
+            if (!inMask) psFree (mask);
 	    return true;
 	}
Index: /branches/eam_branches/ipp-20120627/psLib/src/sys/psThread.c
===================================================================
--- /branches/eam_branches/ipp-20120627/psLib/src/sys/psThread.c	(revision 34242)
+++ /branches/eam_branches/ipp-20120627/psLib/src/sys/psThread.c	(revision 34243)
@@ -343,5 +343,8 @@
             psThread *thread = pool->data[i];
             if (thread->fault) {
+		// we had a fault on this thread -- clear the fault and keep going, but record
+		// the fault.
                 numFaults++;
+		thread->fault = false;
             }
         }
