Index: trunk/psLib/test/sysUtils/tst_psLogMsg02.c
===================================================================
--- trunk/psLib/test/sysUtils/tst_psLogMsg02.c	(revision 598)
+++ trunk/psLib/test/sysUtils/tst_psLogMsg02.c	(revision 852)
@@ -13,4 +13,5 @@
     int i = 0;
     int testStatus = true;
+    int currentId = psMemGetId();
 
     printPositiveTestHeader(stdout,
@@ -65,4 +66,10 @@
                 "psSetLogFormat()",
                 testStatus);
+
+    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
+        psAbort(__func__,"Memory Leaks!");
+    }
+    psMemCheckCorruption(1);
+
     return(!testStatus);
 }
