Index: /trunk/psLib/test/sysUtils/tst_psHash00.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash00.c	(revision 859)
+++ /trunk/psLib/test/sysUtils/tst_psHash00.c	(revision 860)
@@ -1,4 +1,4 @@
 /*****************************************************************************
-    This code tests whether a hash table be allocated successfully.
+    This code will test whether a hash table can be allocated successfully.
  *****************************************************************************/
 #include <stdio.h>
@@ -12,5 +12,6 @@
     int testStatus      = true;
     int i               = 0;
-
+    int currentId = psMemGetId();
+    int memLeaks        = 0;
     printPositiveTestHeader(stdout,
                             "psHash functions",
@@ -51,4 +52,12 @@
                 testStatus);
 
+    psHashFree(myHashTable, NULL);
+
+    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+    if (0 != memLeaks) {
+        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+    }
+    psMemCheckCorruption(1);
+
     return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash01.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash01.c	(revision 859)
+++ /trunk/psLib/test/sysUtils/tst_psHash01.c	(revision 860)
@@ -36,4 +36,6 @@
     psHash *myHashTable = NULL;
     int testStatus      = true;
+    int currentId = psMemGetId();
+    int memLeaks        = 0;
 
     printPositiveTestHeader(stdout,
@@ -67,4 +69,10 @@
                 testStatus);
 
+    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+    if (0 != memLeaks) {
+        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+    }
+    psMemCheckCorruption(1);
+
     return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash02.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash02.c	(revision 859)
+++ /trunk/psLib/test/sysUtils/tst_psHash02.c	(revision 860)
@@ -1,7 +1,7 @@
 /*****************************************************************************
-    This code tests whether hash tables entries can be inserted correctly.
+    This code will test whether hash tables entries can be inserted correctly.
  
     GUS: Add code to test whether duplicates are handled correctly (use a
-    small hast table and lots of keys).
+    small hash table and lots of keys).
  *****************************************************************************/
 #include <stdio.h>
@@ -41,4 +41,6 @@
     char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL};
+    int currentId = psMemGetId();
+    int memLeaks        = 0;
 
     printPositiveTestHeader(stdout,
@@ -69,4 +71,12 @@
                 testStatus);
 
+    psHashFree(myHashTable, NULL);
+
+    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+    if (0 != memLeaks) {
+        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+    }
+    psMemCheckCorruption(1);
+
     return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash03.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash03.c	(revision 859)
+++ /trunk/psLib/test/sysUtils/tst_psHash03.c	(revision 860)
@@ -1,4 +1,4 @@
 /*****************************************************************************
-    This code tests whether hash tables entries can be removed correctly.
+    This code will test whether hash tables entries can be removed correctly.
  
     GUS: Add code to test whether duplicates are handled correctly.
@@ -40,4 +40,6 @@
     char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL};
+    int currentId = psMemGetId();
+    int memLeaks        = 0;
 
     printPositiveTestHeader(stdout,
@@ -82,4 +84,11 @@
                 testStatus);
 
+    psHashFree(myHashTable, NULL);
+    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+    if (0 != memLeaks) {
+        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+    }
+    psMemCheckCorruption(1);
+
     return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash04.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash04.c	(revision 859)
+++ /trunk/psLib/test/sysUtils/tst_psHash04.c	(revision 860)
@@ -1,4 +1,4 @@
 /*****************************************************************************
-    This code tests whether the call psHashKeyList() function works.
+    This code will test whether the call psHashKeyList() function works.
  *****************************************************************************/
 #include <stdio.h>
@@ -36,4 +36,6 @@
     char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL};
+    int currentId = psMemGetId();
+    int memLeaks        = 0;
 
     printPositiveTestHeader(stdout,
@@ -59,4 +61,12 @@
                 testStatus);
 
+    psHashFree(myHashTable, NULL);
+
+    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+    if (0 != memLeaks) {
+        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+    }
+    psMemCheckCorruption(1);
+
     return(!testStatus);
 }
