mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
apply dictclear to dict of deleted modules
This commit is contained in:
parent
49b11fed70
commit
27e916fd35
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue