Index: /trunk/psLib/test/collections/tst_psList.c
===================================================================
--- /trunk/psLib/test/collections/tst_psList.c	(revision 945)
+++ /trunk/psLib/test/collections/tst_psList.c	(revision 946)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-08 20:08:51 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-09 19:27:09 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -108,5 +108,8 @@
     psListFree(list,PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -253,5 +256,8 @@
     psListFree(list, PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -378,5 +384,8 @@
     psListFree(list,PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -615,5 +624,8 @@
     psListFree(list,PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -674,5 +686,8 @@
     psListFree(list,PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -751,5 +766,8 @@
     psListFree(list,PS_FREE);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -882,5 +900,8 @@
     }
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
Index: /trunk/psLib/test/image/tst_psImage.c
===================================================================
--- /trunk/psLib/test/image/tst_psImage.c	(revision 945)
+++ /trunk/psLib/test/image/tst_psImage.c	(revision 946)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-09 00:28:09 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-09 19:27:09 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -224,5 +224,8 @@
             // children is freed.
             psImageFree(image);
-            psMemCheckLeaks(currentId,NULL,NULL);
+            if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+                psError(__func__,"Memory Leaks Detected");
+                return 64;
+            }
             psMemCheckCorruption(1);
 
@@ -232,5 +235,8 @@
     // #548: Verify program execution doesn't stop, if the input psImage structure pointer is null.
     psImageFree(NULL);
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -243,5 +249,8 @@
     psImageFree(image);
 
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
@@ -512,5 +521,8 @@
     // Verify no memory leaks or corruption are detected for a psImage structure
     // Verify no memory leaks or corruption are detected for a psImage structure
-    psMemCheckLeaks(currentId,NULL,NULL);
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psError(__func__,"Memory Leaks Detected");
+        return 64;
+    }
     psMemCheckCorruption(1);
 
