mirror of
https://github.com/python/cpython.git
synced 2026-04-22 20:01:13 +00:00
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:
parent
9b0d4d04a1
commit
a971a6fdb1
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue