Index: trunk/psLib/src/sysUtils/psErrorCodes.c
===================================================================
--- trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 2681)
+++ trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 2703)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-10 02:50:15 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-13 20:49:56 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -79,7 +79,9 @@
         while ((desc = (psErrorDescription*)psListGetNext(iter)) != NULL) {
             if (desc->code == code) {
+                psFree(iter);
                 return desc;
             }
         }
+        psFree(iter);
     }
     return NULL;
@@ -140,4 +142,10 @@
         dynamicErrorCodes = psListAlloc(NULL);
         p_psMemSetPersistent(dynamicErrorCodes,true);
+
+        p_psMemSetPersistent(dynamicErrorCodes->iterators,true);
+        p_psMemSetPersistent(dynamicErrorCodes->iterators->data,true);
+        for (int i = 0; i < dynamicErrorCodes->iterators->n;i++) {
+            p_psMemSetPersistent(dynamicErrorCodes->iterators->data[i],true);
+        }
     }
 
