mirror of https://github.com/python/cpython
gh-101765: unicodeobject: use Py_XDECREF correctly (#102283)
This commit is contained in:
parent
6daf42b28e
commit
8d0f09b1be
|
@ -14795,7 +14795,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
|
|||
} else {
|
||||
PyObject *u = unicode_new_empty();
|
||||
if (u == NULL) {
|
||||
Py_DECREF(iter);
|
||||
Py_XDECREF(iter);
|
||||
return NULL;
|
||||
}
|
||||
return Py_BuildValue("N(N)", iter, u);
|
||||
|
|
Loading…
Reference in New Issue