]> granicus.if.org Git - postgresql/commit
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:35 +0000 (03:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Jun 2009 03:44:35 +0000 (03:44 +0000)
commit0dcc73fea4a3371272465f418d323dbd45f9faff
tree5ff70f90a84b4f5914ab482f813fdd39248d618b
parentf371fda397c68bf15e091862a76a24795e42462a
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