Skip to content

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.
(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
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