Fix bug 126587: matchobject.groupdict() leaks memory because of a missing

DECREF
This commit is contained in:
Andrew M. Kuchling 2000-12-22 14:39:10 +00:00
parent 738293d663
commit 48f224c877
1 changed files with 1 additions and 0 deletions

View File

@ -1996,6 +1996,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
}
/* FIXME: <fl> this can fail, right? */
PyDict_SetItem(result, key, item);
Py_DECREF(item);
}
Py_DECREF(keys);