[Python-checkins] cpython: Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and

victor.stinner python-checkins at python.org
Tue Oct 29 19:45:57 CET 2013


http://hg.python.org/cpython/rev/6d57be1f19cf
changeset:   86743:6d57be1f19cf
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Oct 29 19:29:52 2013 +0100
summary:
  Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
PyTuple_New() failure

files:
  Objects/abstract.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Objects/abstract.c b/Objects/abstract.c
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2144,6 +2144,8 @@
     }
     else
         args = PyTuple_New(0);
+    if (args == NULL)
+        return NULL;
 
     return call_function_tail(callable, args);
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list