summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-07 17:44:09 -0700
committerYury Selivanov <yury@magic.io>2018-06-07 20:44:09 -0400
commita971a6fdb111bb62911ccf45aa9fe734e2e7a590 (patch)
tree45ee08bebe535b0f256af1c4ae3945357d578878 /Python
parent9b0d4d04a15a97a1055f1b729f14e9257f149fd3 (diff)
downloadcpython-git-a971a6fdb111bb62911ccf45aa9fe734e2e7a590.tar.gz
bpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505)
(cherry picked from commit 378c53cc3187dba57c7560ccc2557f516c8a7bc8) Co-authored-by: Yury Selivanov <yury@magic.io>
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;