]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed refcount bug (thank you, Purify and AMK).
authorGuido van Rossum <guido@python.org>
Thu, 14 Aug 1997 21:19:13 +0000 (21:19 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Aug 1997 21:19:13 +0000 (21:19 +0000)
Modules/reopmodule.c

index 39e6ecea453387046d32b3720695b2acde9bb67a..f36647e177d8f87a4ceb5c0309c2a6db15efe8ef 100644 (file)
@@ -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);