mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue 15777: Fix a refleak in _posixsubprocess.
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
This commit is contained in:
parent
01d183732e
commit
f2b34b8b96
2 changed files with 5 additions and 1 deletions
|
@ -109,6 +109,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #15777: Fix a refleak in _posixsubprocess.
|
||||
|
||||
- Issue #15199: Fix JavaScript's default MIME type to application/javascript.
|
||||
Patch by Bohuslav Kabrda.
|
||||
|
||||
|
|
|
@ -566,8 +566,10 @@ subprocess_fork_exec(PyObject* self, PyObject *args)
|
|||
}
|
||||
|
||||
exec_array = _PySequence_BytesToCharpArray(executable_list);
|
||||
if (!exec_array)
|
||||
if (!exec_array) {
|
||||
Py_XDECREF(gc_module);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Convert args and env into appropriate arguments for exec() */
|
||||
/* These conversions are done in the parent process to avoid allocating
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue