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 0fc920f commit 36d7afcCopy full SHA for 36d7afc
1 file changed
Objects/dictobject.c
@@ -6641,6 +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);
6646
6647
else {
6648
PyObject *pair = _PyTuple_FromPairSteal(key, val2);
@@ -6654,6 +6656,7 @@ dictitems_xor_lock_held(PyObject *d1, PyObject *d2)
6654
6656
6655
6657
Py_DECREF(pair);
6658
6659
+ Py_XDECREF(val1);
6660
6661
key = val1 = val2 = NULL;
6662
0 commit comments