Skip to content

Commit 4cc3636

Browse files
gh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283)
(cherry picked from commit 8d0f09b) Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 8e9ffd9 commit 4cc3636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16081,7 +16081,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
1608116081
} else {
1608216082
PyObject *u = (PyObject *)_PyUnicode_New(0);
1608316083
if (u == NULL) {
16084-
Py_DECREF(iter);
16084+
Py_XDECREF(iter);
1608516085
return NULL;
1608616086
}
1608716087
return Py_BuildValue("N(N)", iter, u);

0 commit comments

Comments
 (0)