Index: /trunk/psLib/src/collections/psList.c
===================================================================
--- /trunk/psLib/src/collections/psList.c	(revision 1541)
+++ /trunk/psLib/src/collections/psList.c	(revision 1542)
@@ -7,6 +7,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-09 23:34:57 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-14 01:48:45 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -196,4 +196,6 @@
         if (which == PS_LIST_UNKNOWN) {
             psError(__func__, "Failed to find item in given psList.");
+            pthread_mutex_unlock(&list->lock)
+            ;
             return false;
         }
@@ -206,4 +208,6 @@
     if (elem == NULL) {
         psError(__func__, "Couldn't position to given index (%d) to remove element from list.", which);
+        pthread_mutex_unlock(&list->lock)
+        ;
         return false;
     }
@@ -270,4 +274,8 @@
     if (where >= (int)list->size) {
         list->iter = NULL;
+        if (lockList) {
+            pthread_mutex_unlock(&list->lock)
+            ;
+        }
         return;
     }
Index: /trunk/psLib/src/types/psList.c
===================================================================
--- /trunk/psLib/src/types/psList.c	(revision 1541)
+++ /trunk/psLib/src/types/psList.c	(revision 1542)
@@ -7,6 +7,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-09 23:34:57 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-14 01:48:45 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -196,4 +196,6 @@
         if (which == PS_LIST_UNKNOWN) {
             psError(__func__, "Failed to find item in given psList.");
+            pthread_mutex_unlock(&list->lock)
+            ;
             return false;
         }
@@ -206,4 +208,6 @@
     if (elem == NULL) {
         psError(__func__, "Couldn't position to given index (%d) to remove element from list.", which);
+        pthread_mutex_unlock(&list->lock)
+        ;
         return false;
     }
@@ -270,4 +274,8 @@
     if (where >= (int)list->size) {
         list->iter = NULL;
+        if (lockList) {
+            pthread_mutex_unlock(&list->lock)
+            ;
+        }
         return;
     }
