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