summaryrefslogtreecommitdiff
path: root/testXPath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1999-12-01 09:51:45 +0000
committerDaniel Veillard <veillard@src.gnome.org>1999-12-01 09:51:45 +0000
commitf5c2c8707a79d57411876a4294c9471c04d1e47d (patch)
tree40d270bd4a2b3a26defa47e9dff3f4412d284dcc /testXPath.c
parenta0555cc9ec0108b1bd890a33d37f18c45311c66a (diff)
downloadlibxml2-f5c2c8707a79d57411876a4294c9471c04d1e47d.tar.gz
- 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
Diffstat (limited to 'testXPath.c')
-rw-r--r--testXPath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testXPath.c b/testXPath.c
index 2c298493..b31d3ea7 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 @@ int main(int argc, char **argv) {
printf("\t--file : or\n");
printf("\t-f : read queries from files, args\n");
}
+ if (document != NULL)
+ xmlFreeDoc(document);
+ xmlCleanupParser();
+ xmlMemoryDump();
return(0);
}