Fix os.posix_spawn() error handling (#142532)

Consistently use `goto exit;` in `py_posix_spawn()`.
This commit is contained in:
Bartosz Sławecki 2025-12-11 18:02:26 +01:00 committed by GitHub
parent a27538540e
commit 8cfa351560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {