Skip to content

Commit

Permalink
pythongh-101765: unicodeobject: use Py_XDECREF correctly (pythonGH-10…
Browse files Browse the repository at this point in the history
…2283)

(cherry picked from commit 8d0f09b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
miss-islington and JelleZijlstra committed Feb 26, 2023
1 parent eb55659 commit 64d3715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -15768,7 +15768,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
} else {
PyObject *u = (PyObject *)_PyUnicode_New(0);
if (u == NULL) {
Py_DECREF(iter);
Py_XDECREF(iter);
return NULL;
}
return Py_BuildValue("N(N)", iter, u);
Expand Down

0 comments on commit 64d3715

Please sign in to comment.