mirror of
https://github.com/python/cpython.git
synced 2025-07-15 07:15:18 +00:00
bpo-33803: Fix a crash in hamt.c (#7504)
This commit is contained in:
parent
c4f3cb772b
commit
378c53cc31
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