diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
commit | 763a61ca954a1c5a1b56411dd5e57a7d58afff75 (patch) | |
tree | 36c3a606196c2a37e8865b5fbf78531e21a032ea /Python/errors.c | |
parent | 149d080871f9bef276a3d4fa251ba6fbc910f770 (diff) | |
download | cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.zip cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.gz cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.bz2 |
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c index 466a253..d823e13 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -229,9 +229,9 @@ finally: --tstate->recursion_depth; /* throw away the old exception and use the recursion error instead */ Py_INCREF(PyExc_RuntimeError); - Py_XSETREF(*exc, PyExc_RuntimeError); + Py_SETREF(*exc, PyExc_RuntimeError); Py_INCREF(PyExc_RecursionErrorInst); - Py_XSETREF(*val, PyExc_RecursionErrorInst); + Py_SETREF(*val, PyExc_RecursionErrorInst); /* just keeping the old traceback */ return; } |