]> granicus.if.org Git - python/commitdiff
Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Oct 2013 18:29:52 +0000 (19:29 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Oct 2013 18:29:52 +0000 (19:29 +0100)
PyTuple_New() failure

Objects/abstract.c

index 6c7a6cd2269ef098bf8b01402b1e8a180df9e04c..91df5da6557990785e560ab11168401bd6883644 100644 (file)
@@ -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);
 }