mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.13] Fix os.posix_spawn() error handling (GH-142532) (#142581)
Fix os.posix_spawn() error handling (GH-142532)
Consistently use `goto exit;` in `py_posix_spawn()`.
(cherry picked from commit 8cfa351560)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
parent
7c2d9c9498
commit
53ca3b7b5c
1 changed files with 1 additions and 1 deletions
|
|
@ -7352,7 +7352,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