Fix crash in bytea-to-XML mapping when the source value is toasted.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Oct 2008 15:49:10 +0000 (15:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Oct 2008 15:49:10 +0000 (15:49 +0000)
commitc0a7447e6751eb2e2ef8c3bbb6c71198af5d0a48
tree49eb0a93435fa1c139e48a92ade5d9cfb781db72
parent274702451aa0ec031f61f832c43111d92d9dd122
Fix crash in bytea-to-XML mapping when the source value is toasted.
Report and fix by Michael McMaster.  Some minor code beautification by me,
also avoid memory leaks in the special-case paths.
src/backend/utils/adt/xml.c