Index: trunk/psLib/test/sys/tap_psStringSubstitute.c
===================================================================
--- trunk/psLib/test/sys/tap_psStringSubstitute.c	(revision 8234)
+++ trunk/psLib/test/sys/tap_psStringSubstitute.c	(revision 8706)
@@ -5,5 +5,5 @@
 #define ORIGINAL "This is, a, test case, to check."
 #define CORRECTED "This is a test case to check."
-#define mem() ok(psMemCheckLeaks(0, NULL, stdout, false) == 0, "Memory Leaks")
+#define mem() ok(psMemCheckLeaks(psMemGetLastId(), NULL, stdout, false) == 0, "Memory Leaks")
 
 int main (void)
@@ -28,5 +28,5 @@
         input = psStringSubstitute(input, "XXX", "");
         ok(input && strcmp(input, ORIGINAL) == 0, "output = %s", input);
-        //        psFree(input);
+        psFree(input);
         //        ok(psMemCheckLeaks(0, NULL, stdout, false) == 0, "Memory Leaks");
         mem();
