mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 15:47:01 -04:00
Fix segfault when xpath_list function is applied to an invalid document.
John Gray
This commit is contained in:
parent
84620860d9
commit
0549de06ba
1 changed files with 3 additions and 0 deletions
|
|
@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
|
|||
text *xpres;
|
||||
|
||||
if (res == NULL)
|
||||
{
|
||||
xmlCleanupParser();
|
||||
return NULL;
|
||||
}
|
||||
switch (res->type)
|
||||
{
|
||||
case XPATH_NODESET:
|
||||
|
|
|
|||
Loading…
Reference in a new issue