summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-06-04 20:13:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-06-04 20:13:04 -0400
commit63ac5b0b67a5ea23d24ee745397d39fcf1f77bcc (patch)
tree610c26f82ceba44494c16af4ecefaed903ce926d /src
parent46ceb398f09e0bd8427b73350d48e414f4372153 (diff)
Fix some more bugs in contrib/xml2's xslt_process().
It failed to check for error return from xsltApplyStylesheet(), as reported by Peter Gagarinov. (So far as I can tell, libxslt provides no convenient way to get a useful error message in failure cases. There might be some inconvenient way, but considering that this code is deprecated it's hard to get enthusiastic about putting lots of work into it. So I just made it say "failed to apply stylesheet", in line with the existing error checks.) While looking at the code I also noticed that the string returned by xsltSaveResultToString was never freed, resulting in a session-lifespan memory leak. Back-patch to all supported versions.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions