mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix segfault when xpath_list function is applied to an invalid document.
John Gray
This commit is contained in:
@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
|
|||||||
text *xpres;
|
text *xpres;
|
||||||
|
|
||||||
if (res == NULL)
|
if (res == NULL)
|
||||||
|
{
|
||||||
|
xmlCleanupParser();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
switch (res->type)
|
switch (res->type)
|
||||||
{
|
{
|
||||||
case XPATH_NODESET:
|
case XPATH_NODESET:
|
||||||
|
Reference in New Issue
Block a user