mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
DECREF
This commit is contained in:
parent
738293d663
commit
48f224c877
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue