Heads-Up: Beware of xmlCleanupParser() when your package links against libxml2

Tom Lane tgl at redhat.com
Wed Jan 13 01:07:27 UTC 2010

Lennart Poettering <mzerqung at 0pointer.de> writes:
> if you have code that links against libxml2 and calls
> xmlCleanupParser() please verify that your project does that at the
> appropriate place (i.e. immediately before exiting, and only once).

Why exactly is this a misuse, and not libxml2's bug to fix?  There's
certainly nothing in their documentation suggesting that there's
such a requirement.

			regards, tom lane

More information about the devel mailing list