mirror of https://github.com/python/cpython
apply dictclear to dict of deleted modules
This commit is contained in:
parent
49b11fed70
commit
27e916fd35
|
@ -92,8 +92,10 @@ static void
|
|||
module_dealloc(m)
|
||||
moduleobject *m;
|
||||
{
|
||||
if (m->md_dict != NULL)
|
||||
if (m->md_dict != NULL) {
|
||||
mappingclear(m->md_dict);
|
||||
DECREF(m->md_dict);
|
||||
}
|
||||
free((char *)m);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue