Skip to content
Prev Previous commit
Address code review
  • Loading branch information
corona10 committed Feb 17, 2026
commit e7c7dffe40470699889aec97cb109a76abb0a934
1 change: 1 addition & 0 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3361,6 +3361,7 @@ dict_iter_exit:;
}
else if (PyFrozenDict_CheckExact(d)) {
while ((key = PyIter_Next(it)) != NULL) {
// anydict_setitem_take2 consumes a reference to key
status = anydict_setitem_take2((PyDictObject *)d,
key, Py_NewRef(value));
if (status < 0) {
Expand Down
Loading