From: Guido van Rossum Date: Thu, 26 Jan 1995 00:39:00 +0000 (+0000) Subject: apply dictclear to dict of deleted modules X-Git-Tag: v1.2b3~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27e916fd3546955a903bc263dd750cd1839e2fc6;p=thirdparty%2FPython%2Fcpython.git apply dictclear to dict of deleted modules --- diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 9d8e1820f332..7377a98235a7 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); }