Commit 59e9ca6b authored by Victor Stinner's avatar Victor Stinner

Merge 3.5 (fix refleak in call_method)

parents a7720f61 d925bd57
......@@ -1442,8 +1442,10 @@ call_method(PyObject *o, _Py_Identifier *nameid, const char *format, ...)
va_end(va);
if (args == NULL)
if (args == NULL) {
Py_DECREF(func);
return NULL;
}
assert(PyTuple_Check(args));
retval = PyObject_Call(func, args, NULL);
......
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