Commit 2bb0a7a9 authored by Neal Norwitz's avatar Neal Norwitz

Fix refleak

parent c8253040
......@@ -4595,8 +4595,10 @@ slot_tp_call(PyObject *self, PyObject *args, PyObject *kwds)
the object returned for __call__ has __call__ itself defined
upon it. This can be an infinite recursion if you set
__call__ in a class to an instance of it. */
if (Py_EnterRecursiveCall(" in __call__"))
if (Py_EnterRecursiveCall(" in __call__")) {
Py_DECREF(meth);
return NULL;
}
res = PyObject_Call(meth, args, kwds);
Py_LeaveRecursiveCall();
......
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