Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review
  • Loading branch information
sergey-miryanov committed Mar 27, 2026
commit 06a01eb1827dcd3f31094271382ae2cd1b7b1f32
4 changes: 2 additions & 2 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -6632,17 +6632,18 @@ dictitems_xor_lock_held(PyObject *d1, PyObject *d2)
else {
Py_INCREF(val1);
to_delete = PyObject_RichCompareBool(val1, val2, Py_EQ);
Comment thread
vstinner marked this conversation as resolved.
Py_CLEAR(val1);
if (to_delete < 0) {
goto error;
Comment thread
vstinner marked this conversation as resolved.
}
}

if (to_delete) {
Py_CLEAR(val2);
if (_PyDict_DelItem_KnownHash(temp_dict, key, hash) < 0) {
goto error;
}
Py_CLEAR(key);
Py_CLEAR(val2);
}
else {
PyObject *pair = _PyTuple_FromPairSteal(key, val2);
Expand All @@ -6656,7 +6657,6 @@ dictitems_xor_lock_held(PyObject *d1, PyObject *d2)
}
Py_DECREF(pair);
}
Py_CLEAR(val1);
}

PyObject *remaining_pairs = PyObject_CallMethodNoArgs(
Expand Down
Loading