Index: trunk/psLib/test/sysUtils/tst_psHash03.c
===================================================================
--- trunk/psLib/test/sysUtils/tst_psHash03.c	(revision 584)
+++ 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);
 }
