]> granicus.if.org Git - python/commitdiff
_PyObject_FastCallKeywords() now checks the result
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 10:27:22 +0000 (11:27 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 10:27:22 +0000 (11:27 +0100)
Issue ##27830, Issue #29259.

Objects/abstract.c

index 682263d7bcb210c4dadffeb449d9f3e03f950a53..4b32fedccf000cd0f0ccd46dc78a5b8b609f641c 100644 (file)
@@ -2539,6 +2539,8 @@ _PyObject_FastCallKeywords(PyObject *callable, PyObject **stack, Py_ssize_t narg
         Py_DECREF(argtuple);
         Py_XDECREF(kwdict);
 
+        result = _Py_CheckFunctionResult(callable, result, NULL);
+
     exit:
         Py_LeaveRecursiveCall();
         return result;