Index: trunk/psLib/test/image/tst_psImage.c
===================================================================
--- trunk/psLib/test/image/tst_psImage.c	(revision 939)
+++ 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);
 
