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)
commit00c616e28f1ec7083652ffa9c0a983ad28bc77f4
tree51f4ae5eadf17e8e4077623b10b96e302268b1fc
parenta8376a57ccf0e97db61621bfe4d944b283103344
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