diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-02-26 23:09:18 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-26 23:09:18 (GMT) |
| commit | 64d3715de89467971f40f24cce8c435a24f6b3c4 (patch) | |
| tree | b956c7c94162a6f7e4836085ac59c37cc693a67b | |
| parent | eb5565918ab9f814fc3490f0604ee0c96cd981b4 (diff) | |
| download | cpython-64d3715de89467971f40f24cce8c435a24f6b3c4.zip cpython-64d3715de89467971f40f24cce8c435a24f6b3c4.tar.gz cpython-64d3715de89467971f40f24cce8c435a24f6b3c4.tar.bz2 | |
gh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283)
(cherry picked from commit 8d0f09b1beafd95763a5da53acc58dac0bd63a53)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
| -rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9b8296c..84d17f0 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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); |
