Kaydet (Commit) f1c018de authored tarafından Guido van Rossum's avatar Guido van Rossum

Fixed refcount bug (thank you, Purify and AMK).

üst 644c17d2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment