Ensure xmlFree(NULL) is a no-op instead of a core dump. Per report from
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Jun 2009 03:44:42 +0000 (03:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Jun 2009 03:44:42 +0000 (03:44 +0000)
commit96c6b333b137b471dac592fda7f2ee3c0faa6386
treebbe5b412b2deaae0e61172ed5646ae3a851cb84b
parent84814ef08990cb5e7eba15106d97eabb94b82907
Ensure xmlFree(NULL) is a no-op instead of a core dump.  Per report from
Sergey Burladyan, there are at least some dank corners of libxml2 that
assume this behavior, even though their published documentation suggests
they shouldn't.

This is only really a live problem in 8.3, but the code is still there
for possible debugging use in HEAD, so patch both branches.
src/backend/utils/adt/xml.c