Commit 97932e4c authored by Serhiy Storchaka's avatar Serhiy Storchaka

issue #28144: Decrease empty_keys_struct's dk_refcnt

since there is no dummy_struct any more.
Patch by Xiang Zhang.
parent 8d08265f
......@@ -419,7 +419,7 @@ dk_set_index(PyDictKeysObject *keys, Py_ssize_t i, Py_ssize_t ix)
* (which cannot fail and thus can do no allocation).
*/
static PyDictKeysObject empty_keys_struct = {
2, /* dk_refcnt 1 for this struct, 1 for dummy_struct */
1, /* dk_refcnt */
1, /* dk_size */
lookdict_split, /* dk_lookup */
0, /* dk_usable (immutable) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment