Skip to content

[3.6] bpo-30602: Fix refleak in os.spawnv() (#2212)#2486

Merged
vstinner merged 1 commit into
python:3.6from
vstinner:spawnv_leak
Jun 29, 2017
Merged

[3.6] bpo-30602: Fix refleak in os.spawnv() (#2212)#2486
vstinner merged 1 commit into
python:3.6from
vstinner:spawnv_leak

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.
(cherry picked from commit 8acb4cf)

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)
@vstinner
Copy link
Copy Markdown
Member Author

Fix the following leak:

test_os leaked [3, 3, 3] memory blocks, sum=9

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.6/builds/37/steps/test/logs/stdio

@vstinner vstinner merged commit b78fbaa into python:3.6 Jun 29, 2017
@vstinner vstinner deleted the spawnv_leak branch June 29, 2017 08:53
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.

2 participants