summaryrefslogtreecommitdiff
path: root/Python/hamt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/hamt.c')
-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;