Commit f766e23f authored by Guido van Rossum's avatar Guido van Rossum

There was an error check in a loop in PythonCmd which called

PythonCmd_Error() but failed to return.  The error wasn't very likely
(only when we run out of memory) but since the check is there we might
as well return the error.  (I think that Barry introduced this buglet
when he added error checks everywhere.)
parent 7b7f6688
......@@ -1202,7 +1202,7 @@ PythonCmd(clientData, interp, argc, argv)
PyObject *s = PyString_FromString(argv[i + 1]);
if (!s || PyTuple_SetItem(arg, i, s)) {
Py_DECREF(arg);
PythonCmd_Error(interp);
return PythonCmd_Error(interp);
}
}
res = PyEval_CallObject(func, arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment