apply dictclear to dict of deleted modules

This commit is contained in:
Guido van Rossum 1995-01-26 00:39:00 +00:00
parent 49b11fed70
commit 27e916fd35
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}