mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
gh-101765: unicodeobject: use Py_XDECREF correctly (#102283)
This commit is contained in:
parent
6daf42b28e
commit
8d0f09b1be
1 changed files with 1 additions and 1 deletions
|
@ -14795,7 +14795,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
|
||||||
} else {
|
} else {
|
||||||
PyObject *u = unicode_new_empty();
|
PyObject *u = unicode_new_empty();
|
||||||
if (u == NULL) {
|
if (u == NULL) {
|
||||||
Py_DECREF(iter);
|
Py_XDECREF(iter);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return Py_BuildValue("N(N)", iter, u);
|
return Py_BuildValue("N(N)", iter, u);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue