aboutsummaryrefslogtreecommitdiff
path: root/contrib/xml2/xslt_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/xml2/xslt_proc.c')
-rw-r--r--contrib/xml2/xslt_proc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/contrib/xml2/xslt_proc.c b/contrib/xml2/xslt_proc.c
index 18d9879fcfc..bf7ef89042f 100644
--- a/contrib/xml2/xslt_proc.c
+++ b/contrib/xml2/xslt_proc.c
@@ -80,7 +80,6 @@ xslt_process(PG_FUNCTION_ARGS)
if (doctree == NULL)
{
- xmlCleanupParser();
elog_error("Error parsing XML document", false);
PG_RETURN_NULL();
@@ -94,7 +93,6 @@ xslt_process(PG_FUNCTION_ARGS)
if (ssdoc == NULL)
{
xmlFreeDoc(doctree);
- xmlCleanupParser();
elog_error("Error parsing stylesheet as XML document", false);
PG_RETURN_NULL();
}
@@ -109,7 +107,6 @@ xslt_process(PG_FUNCTION_ARGS)
{
xmlFreeDoc(doctree);
xsltCleanupGlobals();
- xmlCleanupParser();
elog_error("Failed to parse stylesheet", false);
PG_RETURN_NULL();
}
@@ -122,7 +119,6 @@ xslt_process(PG_FUNCTION_ARGS)
xmlFreeDoc(doctree);
xsltCleanupGlobals();
- xmlCleanupParser();
if (resstat < 0)
PG_RETURN_NULL();