From: Guido van Rossum Date: Thu, 14 Aug 1997 21:19:13 +0000 (+0000) Subject: Fixed refcount bug (thank you, Purify and AMK). X-Git-Tag: v1.5a3~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1c018de8771542b74cd7f95cdc01977182c7f51;p=thirdparty%2FPython%2Fcpython.git Fixed refcount bug (thank you, Purify and AMK). --- diff --git a/Modules/reopmodule.c b/Modules/reopmodule.c index 39e6ecea4533..f36647e177d8 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);