summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-12-22 14:39:10 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-12-22 14:39:10 (GMT)
commit48f224c877c739031df928c05a98206b5cecfbcd (patch)
tree90c22a4edf7d0cbacb573209d68ec1c476e87953 /Modules/_sre.c
parent738293d663d426ed5bca8d59d9e290bc3d339eb0 (diff)
downloadcpython-48f224c877c739031df928c05a98206b5cecfbcd.zip
cpython-48f224c877c739031df928c05a98206b5cecfbcd.tar.gz
cpython-48f224c877c739031df928c05a98206b5cecfbcd.tar.bz2
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
DECREF
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 954547f..ccbd7b2 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -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);