diff options
author | Guido van Rossum <guido@python.org> | 1997-08-14 21:19:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-14 21:19:13 (GMT) |
commit | f1c018de8771542b74cd7f95cdc01977182c7f51 (patch) | |
tree | e095efe5af3b6a9a748b9c06fa7c523a65b9c38e /Modules | |
parent | 644c17d2afe6755b6fbc70e3c1da8b3a49b52a18 (diff) | |
download | cpython-f1c018de8771542b74cd7f95cdc01977182c7f51.zip cpython-f1c018de8771542b74cd7f95cdc01977182c7f51.tar.gz cpython-f1c018de8771542b74cd7f95cdc01977182c7f51.tar.bz2 |
Fixed refcount bug (thank you, Purify and AMK).
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); |