diff options
author | Yury Selivanov <yury@magic.io> | 2018-06-08 00:29:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 00:29:55 (GMT) |
commit | 378c53cc3187dba57c7560ccc2557f516c8a7bc8 (patch) | |
tree | a4676068fa48188ca869a0a8e6be80737ce742e6 /Python/hamt.c | |
parent | c4f3cb772bc2d93d91ee1750eed817262f3ed57d (diff) | |
download | cpython-378c53cc3187dba57c7560ccc2557f516c8a7bc8.zip cpython-378c53cc3187dba57c7560ccc2557f516c8a7bc8.tar.gz cpython-378c53cc3187dba57c7560ccc2557f516c8a7bc8.tar.bz2 |
bpo-33803: Fix a crash in hamt.c (#7504)
Diffstat (limited to 'Python/hamt.c')
-rw-r--r-- | Python/hamt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/hamt.c b/Python/hamt.c index 5217122..f8bce59 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -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; |