Kaydet (Commit) 27e916fd authored tarafından Guido van Rossum's avatar Guido van Rossum

apply dictclear to dict of deleted modules

üst 49b11fed
...@@ -92,8 +92,10 @@ static void ...@@ -92,8 +92,10 @@ static void
module_dealloc(m) module_dealloc(m)
moduleobject *m; moduleobject *m;
{ {
if (m->md_dict != NULL) if (m->md_dict != NULL) {
mappingclear(m->md_dict);
DECREF(m->md_dict); DECREF(m->md_dict);
}
free((char *)m); free((char *)m);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment