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 5db1922 commit 0b03537Copy full SHA for 0b03537
Objects/dictobject.c
@@ -6641,8 +6641,8 @@ dictitems_xor_lock_held(PyObject *d1, PyObject *d2)
6641
if (_PyDict_DelItem_KnownHash(temp_dict, key, hash) < 0) {
6642
goto error;
6643
}
6644
- Py_DECREF(key);
6645
- Py_DECREF(val2);
+ Py_CLEAR(key);
+ Py_CLEAR(val2);
6646
6647
else {
6648
PyObject *pair = _PyTuple_FromPairSteal(key, val2);
@@ -6656,7 +6656,7 @@ dictitems_xor_lock_held(PyObject *d1, PyObject *d2)
6656
6657
Py_DECREF(pair);
6658
6659
- Py_XDECREF(val1);
+ Py_CLEAR(val1);
6660
6661
key = val1 = val2 = NULL;
6662
0 commit comments