diff --git a/tests/DOM/Traversal/Traversal.cpp b/tests/DOM/Traversal/Traversal.cpp
index f4d18796d9ef9135c39b21cec75c122eb496bd31..b6895aa45b9596169afab51bbe463a80fb25a082 100644
--- a/tests/DOM/Traversal/Traversal.cpp
+++ b/tests/DOM/Traversal/Traversal.cpp
@@ -66,6 +66,9 @@
 
 /**
  * $Log$
+ * Revision 1.6  2002/03/07 21:42:14  peiyongz
+ * Call Terminate() to avoid memory tools reporting memory leak
+ *
  * Revision 1.5  2002/02/04 20:12:43  tng
  * Test DOM Level missing functions:
  * 1. NodeIterator::getRoot
@@ -323,6 +326,7 @@ int  main()
             TASSERT(iter.getRoot() == root);
             TASSERT(iter.getRoot() != doc);
 
+			delete filter;
         }
         TESTEPILOG;
 
@@ -363,6 +367,8 @@ int  main()
             TASSERT(nd == E13);
             nd = iter.previousNode();
             TASSERT(nd == E122);
+
+			delete filter;
         }
         TESTEPILOG;
 
@@ -389,6 +395,7 @@ int  main()
             nd = iter.previousNode();
             TASSERT(nd == textNode2);
 
+			delete filter;
         }
         TESTEPILOG;
         TESTPROLOG;
@@ -409,6 +416,7 @@ int  main()
             nd = iter.nextNode();
             TASSERT(nd == 0);
 
+			delete filter;
         }
         TESTEPILOG;
         TESTPROLOG;
@@ -429,6 +437,7 @@ int  main()
             nd = iter.nextNode();
             TASSERT(nd == 0);
 
+			delete filter;
 
         }
         TESTEPILOG;
@@ -449,6 +458,7 @@ int  main()
             nd = iter.nextNode();
             TASSERT(nd == 0);
 
+			delete filter;
         }
         TESTEPILOG;
 
@@ -562,6 +572,9 @@ int  main()
     //
     DomMemDebug().print();
 
+    // And call the termination method
+    XMLPlatformUtils::Terminate();
+
     return 0;
     };
 
diff --git a/tests/IDom/ITraversal/ITraversal.cpp b/tests/IDom/ITraversal/ITraversal.cpp
index 1f1b22b5053327b394d2a011e97e47be9e178da7..9f669494c5fdade87ed29f128e3aae9abf284fcc 100644
--- a/tests/IDom/ITraversal/ITraversal.cpp
+++ b/tests/IDom/ITraversal/ITraversal.cpp
@@ -66,6 +66,9 @@
 
 /**
  * $Log$
+ * Revision 1.8  2002/03/07 21:41:58  peiyongz
+ * Call Terminate() to avoid memory tools reporting memory leak
+ *
  * Revision 1.7  2002/02/04 21:56:57  tng
  * Test DOM Level 2 function getRoot.
  *
@@ -581,6 +584,9 @@ int  main()
 
     };
 
+    // And call the termination method
+    XMLPlatformUtils::Terminate();
+
     printf("Test Run Successfully\n");
     return 0;
 };