postgresql/contrib/xml2
Tom Lane 110ebff209 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.
2012-06-04 20:12:59 -04:00
..
expected Fix contrib/xml2 so regression test still works when it's built without libxslt. 2010-03-01 18:07:59 +00:00
sql Fix up memory management problems in contrib/xml2. 2010-02-28 21:31:57 +00:00
.gitignore Add contrib/xml2/pgxml.sql to .gitignore 2010-09-23 22:08:25 -04:00
Makefile Fix contrib/xml2 so regression test still works when it's built without libxslt. 2010-03-01 18:07:59 +00:00
pgxml.sql.in Fix contrib/xml2 so regression test still works when it's built without libxslt. 2010-03-01 18:07:59 +00:00
uninstall_pgxml.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
xpath.c Fix significant memory leak in contrib/xml2 functions. 2010-11-26 15:20:55 -05:00
xslt_proc.c Fix some more bugs in contrib/xml2's xslt_process(). 2012-06-04 20:12:59 -04:00