mirror of https://github.com/python/cpython
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
DECREF
This commit is contained in:
parent
738293d663
commit
48f224c877
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue