diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-10-29 18:29:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-10-29 18:29:52 (GMT) |
commit | 0b0c86717807bf86ba5d1d7d332529ad08179934 (patch) | |
tree | 64d437e7d42f0762dd3b6ee80589fbec4b25adac /Objects | |
parent | f38a5c28e0f032e6eb9bab7c178f43f0bd2cad8d (diff) | |
download | cpython-0b0c86717807bf86ba5d1d7d332529ad08179934.zip cpython-0b0c86717807bf86ba5d1d7d332529ad08179934.tar.gz cpython-0b0c86717807bf86ba5d1d7d332529ad08179934.tar.bz2 |
Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
PyTuple_New() failure
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 6c7a6cd..91df5da 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); } |