mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix os.posix_spawn() error handling (#142532)
Consistently use `goto exit;` in `py_posix_spawn()`.
This commit is contained in:
parent
a27538540e
commit
8cfa351560
1 changed files with 1 additions and 1 deletions
|
|
@ -7903,7 +7903,7 @@ py_posix_spawn(int use_posix_spawnp, PyObject *module, path_t *path, PyObject *a
|
|||
if (argc < 1) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"%s: argv must not be empty", func_name);
|
||||
return NULL;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (!PyMapping_Check(env) && env != Py_None) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue