From 0b0c86717807bf86ba5d1d7d332529ad08179934 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 29 Oct 2013 19:29:52 +0100 Subject: [PATCH] Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and PyTuple_New() failure --- Objects/abstract.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/abstract.c b/Objects/abstract.c index 6c7a6cd226..91df5da655 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2144,6 +2144,8 @@ PyObject_CallFunction(PyObject *callable, const char *format, ...) } else args = PyTuple_New(0); + if (args == NULL) + return NULL; return call_function_tail(callable, args); } -- 2.49.0