mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.)
This commit is contained in:
parent
7b7f6688d2
commit
f766e23f63
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue