We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49d630 commit da588a1Copy full SHA for da588a1
1 file changed
Objects/dictobject.c
@@ -3362,8 +3362,7 @@ dict_iter_exit:;
3362
else if (PyFrozenDict_CheckExact(d)) {
3363
while ((key = PyIter_Next(it)) != NULL) {
3364
status = anydict_setitem_take2((PyDictObject *)d,
3365
- Py_NewRef(key), Py_NewRef(value));
3366
- Py_DECREF(key);
+ key, Py_NewRef(value));
3367
if (status < 0) {
3368
assert(PyErr_Occurred());
3369
goto Fail;
0 commit comments