summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-06-07 20:23:09 -0400
committerYury Selivanov <yury@magic.io>2018-06-07 20:23:09 -0400
commitfa0d0c2b963b14fd9c2a0ce5969c0906ead590d7 (patch)
treeb6f111a19906323328a4c2c9c71051a9bf3c2963
parentcc6a62c9dc94a4cd67f4c909699886cfecd16303 (diff)
downloadimmutables-fa0d0c2b963b14fd9c2a0ce5969c0906ead590d7.tar.gz
immutables-fa0d0c2b963b14fd9c2a0ce5969c0906ead590d7.zip
Fix a crash in map constructor
More details in https://bugs.python.org/issue33803
-rw-r--r--immutables/_map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/immutables/_map.c b/immutables/_map.c
index d0a5642..8eedd56 100644
--- a/immutables/_map.c
+++ b/immutables/_map.c
@@ -2455,6 +2455,7 @@ map_alloc(void)
o->h_weakreflist = NULL;
o->h_hash = -1;
o->h_count = 0;
+ o->h_root = NULL;
PyObject_GC_Track(o);
return o;
}