Index: /branches/jch-memory/psLib/src/sys/psMemory.c
===================================================================
--- /branches/jch-memory/psLib/src/sys/psMemory.c	(revision 10893)
+++ /branches/jch-memory/psLib/src/sys/psMemory.c	(revision 10894)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.88.2.6 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-01-03 21:55:11 $
+*  @version $Revision: 1.88.2.7 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-01-03 22:04:42 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -305,12 +305,10 @@
     psBool failure = false;
 
-    // get exclusive access to the memBlock list to avoid it changing on us while we use it.
-    //    MUTEX_LOCK(&memBlockListMutex);
+    // get exclusive access to the memBlock list to avoid it changing on us
+    // while we use it.
+    MUTEX_LOCK(&memBlockListMutex);
 
     for (psMemBlock* iter = lastMemBlockAllocated; iter != NULL; iter = iter->nextBlock) {
-        MUTEX_UNLOCK(&memBlockListMutex);
-        failure = checkMemBlock(iter, __func__);
-        MUTEX_LOCK(&memBlockListMutex);
-        if ( failure ) {
+        if (checkMemBlock(iter, __func__)) {
             nbad++;
 
