summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-26 20:01:23 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-26 20:01:23 (GMT)
commit97932e4c4f3eeab12889fe45c935e2e6b91ac390 (patch)
treee6a0e3b07869fc3c991339452db2dff288c4ed99 /Objects
parent8d08265f5ee09835ba725d79b0bd4800b6c8db85 (diff)
downloadcpython-97932e4c4f3eeab12889fe45c935e2e6b91ac390.zip
cpython-97932e4c4f3eeab12889fe45c935e2e6b91ac390.tar.gz
cpython-97932e4c4f3eeab12889fe45c935e2e6b91ac390.tar.bz2
issue #28144: Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more. Patch by Xiang Zhang.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 36ea8f1..fe19445 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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) */