From 378c53cc3187dba57c7560ccc2557f516c8a7bc8 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 7 Jun 2018 20:29:55 -0400 Subject: bpo-33803: Fix a crash in hamt.c (#7504) --- Python/hamt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python') 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; -- cgit v1.2.1