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
master
Peter Hutterer 2022-01-17 13:51:48 +10:00
parent be68829a6b
commit 0e3f72af65
1 changed files with 0 additions and 1 deletions

View File

@ -1197,7 +1197,6 @@ parse(struct rxkb_context *ctx, const char *path,
success = true; success = true;
error: error:
xmlFreeDoc(doc); xmlFreeDoc(doc);
xmlCleanupParser();
return success; return success;
} }