bpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505)

(cherry picked from commit 378c53cc31)

Co-authored-by: Yury Selivanov <yury@magic.io>
This commit is contained in:
Miss Islington (bot) 2018-06-07 17:44:09 -07:00 committed by Yury Selivanov
parent 9b0d4d04a1
commit a971a6fdb1
2 changed files with 4 additions and 0 deletions

View file

@ -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;