Skip to content

bpo-30602: Fix refleak in os.spawnv()#2212

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:spawnv_refleak
Jun 15, 2017
Merged

bpo-30602: Fix refleak in os.spawnv()#2212
vstinner merged 1 commit into
python:masterfrom
vstinner:spawnv_refleak

Conversation

@vstinner
Copy link
Copy Markdown
Member

When os.spawnv() fails while handling arguments, free correctly
argvlist: pass lastarg+1 rather than lastarg to free_string_array()
to also free the first item.

When os.spawnv() fails while handling arguments, free correctly
argvlist: pass lastarg+1 rather than lastarg to free_string_array()
to also free the first item.
@bedevere-bot
Copy link
Copy Markdown

GH-2486 is a backport of this pull request to the 3.6 branch.

vstinner added a commit that referenced this pull request Jun 29, 2017
When os.spawnv() fails while handling arguments, free correctly
argvlist: pass lastarg+1 rather than lastarg to free_string_array()
to also free the first item.
(cherry picked from commit 8acb4cf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants