summaryrefslogtreecommitdiff
path: root/doc/examples/xpath2.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2023-04-30 15:28:12 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2023-04-30 15:48:35 +0200
commitfc119e329069fae2ac7c25bc36ccb8847bac04ad (patch)
tree0e409b312bdf2ae4bcefab865acd5db11d4c514b /doc/examples/xpath2.c
parent3da09318114773af4b09aead0f0c917b0ad11928 (diff)
downloadlibxml2-fc119e329069fae2ac7c25bc36ccb8847bac04ad.tar.gz
examples: Don't call xmlCleanupParser and xmlMemoryDump
xmlCleanupParser is dangerous and shouldn't be called in most cases. Being part of the examples led many people to use it incorrectly. xmlMemoryDump is an obsolete way to test for memory leaks.
Diffstat (limited to 'doc/examples/xpath2.c')
-rw-r--r--doc/examples/xpath2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/examples/xpath2.c b/doc/examples/xpath2.c
index a17a0256..bf4e631d 100644
--- a/doc/examples/xpath2.c
+++ b/doc/examples/xpath2.c
@@ -47,13 +47,6 @@ main(int argc, char **argv) {
return(-1);
}
- /* Shutdown libxml */
- xmlCleanupParser();
-
- /*
- * this is to debug memory for regression tests
- */
- xmlMemoryDump();
return 0;
}