Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b0c867

Browse files
committed
Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
PyTuple_New() failure
1 parent f38a5c2 commit 0b0c867

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Objects/abstract.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,6 +2144,8 @@ PyObject_CallFunction(PyObject *callable, const char *format, ...)
21442144
}
21452145
else
21462146
args = PyTuple_New(0);
2147+
if (args == NULL)
2148+
return NULL;
21472149

21482150
return call_function_tail(callable, args);
21492151
}

0 commit comments

Comments
 (0)