From: Andrew M. Kuchling Date: Fri, 22 Dec 2000 14:39:10 +0000 (+0000) Subject: Fix bug 126587: matchobject.groupdict() leaks memory because of a missing X-Git-Tag: v2.1a1~502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48f224c877c739031df928c05a98206b5cecfbcd;p=python Fix bug 126587: matchobject.groupdict() leaks memory because of a missing DECREF --- diff --git a/Modules/_sre.c b/Modules/_sre.c index 954547f553..ccbd7b2857 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -1996,6 +1996,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw) } /* FIXME: this can fail, right? */ PyDict_SetItem(result, key, item); + Py_DECREF(item); } Py_DECREF(keys);