Index: /trunk/psLib/test/astronomy/tst_psMetadata_05.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psMetadata_05.c	(revision 2040)
+++ /trunk/psLib/test/astronomy/tst_psMetadata_05.c	(revision 2041)
@@ -22,6 +22,6 @@
 *  @author  Ross Harman, MHPCC
 *
-*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
-*  @date  $Date: 2004-10-09 03:05:20 $
+*  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-10-09 03:11:45 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -239,9 +239,13 @@
     psFree(item7);
     psFree(item8);
-    psMemCheckLeaks(0, NULL, stdout);
+    if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) {
+        psError(__func__,"Memory leaks detected.");
+        return 50;
+    }
     psMemCheckCorruption(0);
     int nBad = psMemCheckCorruption(0);
     if(nBad) {
         printf("ERROR: Found %d bad memory blocks\n", nBad);
+        return 51;
     }
     printFooter(stdout, "psMetadata", "Test M - Free psMetadata", true);
Index: /trunk/psLib/test/collections/tst_psMetadata_05.c
===================================================================
--- /trunk/psLib/test/collections/tst_psMetadata_05.c	(revision 2040)
+++ /trunk/psLib/test/collections/tst_psMetadata_05.c	(revision 2041)
@@ -22,6 +22,6 @@
 *  @author  Ross Harman, MHPCC
 *
-*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
-*  @date  $Date: 2004-10-09 03:05:20 $
+*  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-10-09 03:11:45 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -239,9 +239,13 @@
     psFree(item7);
     psFree(item8);
-    psMemCheckLeaks(0, NULL, stdout);
+    if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) {
+        psError(__func__,"Memory leaks detected.");
+        return 50;
+    }
     psMemCheckCorruption(0);
     int nBad = psMemCheckCorruption(0);
     if(nBad) {
         printf("ERROR: Found %d bad memory blocks\n", nBad);
+        return 51;
     }
     printFooter(stdout, "psMetadata", "Test M - Free psMetadata", true);
