Index: /trunk/psastro/src/psastroErrorCodes.c.in
===================================================================
--- /trunk/psastro/src/psastroErrorCodes.c.in	(revision 11273)
+++ /trunk/psastro/src/psastroErrorCodes.c.in	(revision 11274)
@@ -18,5 +18,4 @@
     for (int i = 0; i < nerror; i++) {
        psErrorDescription *tmp = psAlloc(sizeof(psErrorDescription));
-       p_psMemSetPersistent(tmp, true);
        *tmp = errors[i];
        psErrorRegister(tmp, 1);
Index: /trunk/psphot/src/psphotCleanup.c
===================================================================
--- /trunk/psphot/src/psphotCleanup.c	(revision 11273)
+++ /trunk/psphot/src/psphotCleanup.c	(revision 11274)
@@ -6,5 +6,5 @@
 
     psTimerStop ();
-    psMemCheckCorruption (true);
+    psMemCheckCorruption (stderr, true);
     pmModelGroupCleanup ();
     psTimeFinalize ();
@@ -21,14 +21,14 @@
     switch (err) {
       case PSPHOT_ERR_SYS:
-	return PS_EXIT_SYS_ERROR;
+        return PS_EXIT_SYS_ERROR;
       case PSPHOT_ERR_CONFIG:
-	return PS_EXIT_CONFIG_ERROR;
+        return PS_EXIT_CONFIG_ERROR;
       case PSPHOT_ERR_PROG:
-	return PS_EXIT_PROG_ERROR;
+        return PS_EXIT_PROG_ERROR;
       case PSPHOT_ERR_DATA:
-	return PS_EXIT_DATA_ERROR;
+        return PS_EXIT_DATA_ERROR;
       default:
-	return PS_EXIT_UNKNOWN_ERROR;
-    }	
+        return PS_EXIT_UNKNOWN_ERROR;
+    }
     return PS_EXIT_UNKNOWN_ERROR;
 }
Index: /trunk/psphot/src/psphotErrorCodes.c.in
===================================================================
--- /trunk/psphot/src/psphotErrorCodes.c.in	(revision 11273)
+++ /trunk/psphot/src/psphotErrorCodes.c.in	(revision 11274)
@@ -18,5 +18,4 @@
     for (int i = 0; i < nerror; i++) {
        psErrorDescription *tmp = psAlloc(sizeof(psErrorDescription));
-       p_psMemSetPersistent(tmp, true);
        *tmp = errors[i];
        psErrorRegister(tmp, 1);
