projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8462086
)
Fix segfault when xpath_list function is applied to an invalid document.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 9 Jan 2005 17:40:40 +0000
(17:40 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 9 Jan 2005 17:40:40 +0000
(17:40 +0000)
John Gray
contrib/xml2/xpath.c
patch
|
blob
|
history
diff --git
a/contrib/xml2/xpath.c
b/contrib/xml2/xpath.c
index d3ac76b9ef5b889301e9e6e934b73d094fac31bf..c15a5bb62256774bae41d7d22c94610837a2a815 100644
(file)
--- a/
contrib/xml2/xpath.c
+++ b/
contrib/xml2/xpath.c
@@
-582,7
+582,10
@@
pgxml_result_to_text(xmlXPathObjectPtr res,
text *xpres;
if (res == NULL)
+ {
+ xmlCleanupParser();
return NULL;
+ }
switch (res->type)
{
case XPATH_NODESET: