python: return NULL if get_list_of_xml_nodes fails (#44287)
This commit is contained in:
parent
4cf6bd4ff7
commit
6ed8e04ff1
|
@ -511,7 +511,7 @@ get_list_of_xml_nodes(const GList *a_list) {
|
|||
failure:
|
||||
PyErr_SetString(PyExc_TypeError, "Allocation problem in get_list_of_strings");
|
||||
Py_XDECREF(a_tuple);
|
||||
return noneRef();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue