mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Merge 3.5 (fix refleak in call_method)
This commit is contained in:
commit
59e9ca6bda
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue