Commit 48f224c8 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

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

    DECREF
parent 738293d6
...@@ -1996,6 +1996,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw) ...@@ -1996,6 +1996,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
} }
/* FIXME: <fl> this can fail, right? */ /* FIXME: <fl> this can fail, right? */
PyDict_SetItem(result, key, item); PyDict_SetItem(result, key, item);
Py_DECREF(item);
} }
Py_DECREF(keys); Py_DECREF(keys);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment