Skip to content

Commit fa0d0c2

Browse files
committed
Fix a crash in map constructor
More details in https://bugs.python.org/issue33803
1 parent cc6a62c commit fa0d0c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

immutables/_map.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,6 +2455,7 @@ map_alloc(void)
24552455
o->h_weakreflist = NULL;
24562456
o->h_hash = -1;
24572457
o->h_count = 0;
2458+
o->h_root = NULL;
24582459
PyObject_GC_Track(o);
24592460
return o;
24602461
}

0 commit comments

Comments
 (0)