summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c4
1 files changed, 3 insertions, 1 deletions
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 @@ 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);
}