summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-05-05 03:06:42 (GMT)
committerGitHub <noreply@github.com>2024-05-05 03:06:42 (GMT)
commit5dd36732c850084ce262b7869ed90d73a281296a (patch)
treef6927d57c949dda62f28daeb191d53cb8029a6f4 /Objects
parent1b22d801b86ed314c4804b19a1fc4b13484e3cea (diff)
downloadcpython-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.c1
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;
}
}