Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 15, 2017
Merged

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

merged 1 commit into from
Jun 15, 2017

Conversation

vstinner
Copy link
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

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