commit | 27e916fd3546955a903bc263dd750cd1839e2fc6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jan 26 00:39:00 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jan 26 00:39:00 1995 +0000 |
tree | a725a43e7353087937bf92d2229c000197c3fd72 | |
parent | 49b11fed7009804a85740c237fe204bd4baab8b2 [diff] [blame] |
apply dictclear to dict of deleted modules
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 9d8e182..7377a98 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c
@@ -92,8 +92,10 @@ 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); }