- added the patch from Carl Nygard <cnygard@bellatlantic.net>
which allow impressive speed improvement on dataset with large text
pieces, but at the cost of broken binary compatibility and slightly
bigger memory usage. Configure with --with-buffers to activate them,
they are protected with XML_USE_BUFFER_CONTENT define.
- added xmlCleanupPredefinedEntities(), memory allocation cleanup
Daniel
diff --git a/testXPath.c b/testXPath.c
index 2c29849..b31d3ea 100644
--- a/testXPath.c
+++ b/testXPath.c
@@ -37,6 +37,7 @@
#include "tree.h"
#include "parser.h"
#include "debugXML.h"
+#include "xmlmemory.h"
static int debug = 0;
static int expr = 0;
@@ -204,6 +205,10 @@
printf("\t--file : or\n");
printf("\t-f : read queries from files, args\n");
}
+ if (document != NULL)
+ xmlFreeDoc(document);
+ xmlCleanupParser();
+ xmlMemoryDump();
return(0);
}