diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-05-05 03:06:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 03:06:42 (GMT) |
commit | 5dd36732c850084ce262b7869ed90d73a281296a (patch) | |
tree | f6927d57c949dda62f28daeb191d53cb8029a6f4 /Objects | |
parent | 1b22d801b86ed314c4804b19a1fc4b13484e3cea (diff) | |
download | cpython-5dd36732c850084ce262b7869ed90d73a281296a.zip cpython-5dd36732c850084ce262b7869ed90d73a281296a.tar.gz cpython-5dd36732c850084ce262b7869ed90d73a281296a.tar.bz2 |
gh-74929: Remove undesirable DECREF in PEP 667 implementation (#118583)
With tests.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/frameobject.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 8030ecb..1cb00e3 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -171,7 +171,6 @@ framelocalsproxy_setitem(PyObject *self, PyObject *key, PyObject *value) } else if (value != oldvalue) { Py_XSETREF(fast[i], Py_NewRef(value)); } - Py_XDECREF(value); return 0; } } |