summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-06-07 20:29:55 -0400
committerGitHub <noreply@github.com>2018-06-07 20:29:55 -0400
commit378c53cc3187dba57c7560ccc2557f516c8a7bc8 (patch)
treea4676068fa48188ca869a0a8e6be80737ce742e6 /Python
parentc4f3cb772bc2d93d91ee1750eed817262f3ed57d (diff)
downloadcpython-git-378c53cc3187dba57c7560ccc2557f516c8a7bc8.tar.gz
bpo-33803: Fix a crash in hamt.c (#7504)
Diffstat (limited to 'Python')
-rw-r--r--Python/hamt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/hamt.c b/Python/hamt.c
index 52171222b0..f8bce5961a 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -2476,6 +2476,8 @@ hamt_alloc(void)
if (o == NULL) {
return NULL;
}
+ o->h_count = 0;
+ o->h_root = NULL;
o->h_weakreflist = NULL;
PyObject_GC_Track(o);
return o;