Skip to content

Commit a4b0701

Browse files
committed
Merge with 3.2
2 parents ffffa8e + f2b34b8 commit a4b0701

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Core and Builtins
2929
Library
3030
-------
3131

32+
- Issue #15777: Fix a refleak in _posixsubprocess.
33+
3234
- Issue ##665194: Update email.utils.localtime to use datetime.astimezone and
3335
correctly handle historic changes in UTC offsets.
3436

Modules/_posixsubprocess.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,10 @@ subprocess_fork_exec(PyObject* self, PyObject *args)
568568
}
569569

570570
exec_array = _PySequence_BytesToCharpArray(executable_list);
571-
if (!exec_array)
571+
if (!exec_array) {
572+
Py_XDECREF(gc_module);
572573
return NULL;
574+
}
573575

574576
/* Convert args and env into appropriate arguments for exec() */
575577
/* These conversions are done in the parent process to avoid allocating

0 commit comments

Comments
 (0)