registry: don't call xmlCleanupParser()
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 17 Jan 2022 03:51:48 +0000 (13:51 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 18 Jan 2022 05:03:24 +0000 (15:03 +1000)
commit0e3f72af654649f5db64cfd8c8104f88fb55eeb2
tree98832682d71b192d8bfcf2c31f26173b92595aa8
parentbe68829a6baee15518291dbfd996cae84ad42b34
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
src/registry.c