Merge 3.5 (fix refleak in call_maybe())
This commit is contained in:
commit
56142c701b
|
@ -1480,8 +1480,10 @@ call_maybe(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);
|
||||
|
|
Loading…
Reference in New Issue