Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f2b34b8b
Commit
f2b34b8b
authored
Aug 24, 2012
by
Ross Lagerwall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 15777: Fix a refleak in _posixsubprocess.
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
parent
01d18373
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_posixsubprocess.c
Modules/_posixsubprocess.c
+3
-1
No files found.
Misc/NEWS
View file @
f2b34b8b
...
...
@@ -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.
...
...
Modules/_posixsubprocess.c
View file @
f2b34b8b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment