mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130547: Fix race between dict_dealloc and split_keys_entry_added (gh-130778)
This commit is contained in:
parent
d91cc9db15
commit
80e6d3ec49
1 changed files with 1 additions and 1 deletions
|
@ -3254,7 +3254,7 @@ dict_dealloc(PyObject *self)
|
|||
Py_TRASHCAN_BEGIN(mp, dict_dealloc)
|
||||
if (values != NULL) {
|
||||
if (values->embedded == 0) {
|
||||
for (i = 0, n = mp->ma_keys->dk_nentries; i < n; i++) {
|
||||
for (i = 0, n = values->capacity; i < n; i++) {
|
||||
Py_XDECREF(values->values[i]);
|
||||
}
|
||||
free_values(values, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue