summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-01-17 13:51:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-01-18 15:03:24 +1000
commit0e3f72af654649f5db64cfd8c8104f88fb55eeb2 (patch)
tree98832682d71b192d8bfcf2c31f26173b92595aa8 /src
parentbe68829a6baee15518291dbfd996cae84ad42b34 (diff)
downloadxorg-lib-libxkbcommon-0e3f72af654649f5db64cfd8c8104f88fb55eeb2.tar.gz
registry: don't call xmlCleanupParser()
From the documentation: > It does not clean up parser state, it cleans up memory allocated by the library > itself. It is a cleanup function for the XML library. It tries to reclaim all > related global memory allocated for the library processing. [...] > One should call xmlCleanupParser() only when the process has finished using the library. http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser Since we're a library ourselves we cannot know if something else in the same proces uses the parser, so we must not call this. Reported-by: M Hickford
Diffstat (limited to 'src')
-rw-r--r--src/registry.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/registry.c b/src/registry.c
index 7198828..17b6650 100644
--- a/src/registry.c
+++ b/src/registry.c
@@ -1197,7 +1197,6 @@ parse(struct rxkb_context *ctx, const char *path,
success = true;
error:
xmlFreeDoc(doc);
- xmlCleanupParser();
return success;
}