diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/reopmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/reopmodule.c b/Modules/reopmodule.c index 39e6ece..f36647e 100644 --- a/Modules/reopmodule.c +++ b/Modules/reopmodule.c @@ -700,6 +700,7 @@ reop__expand(self, args) PyObject *r, *tuple, *result; r=PyObject_GetAttrString(match_obj, "group"); tuple=PyTuple_New(1); + Py_INCREF(value); PyTuple_SetItem(tuple, 0, value); result=PyEval_CallObject(r, tuple); Py_DECREF(r); Py_DECREF(tuple); |