]> granicus.if.org Git - python/commit
bpo-30602: Fix refleak in os.spawnv() (#2212)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jun 2017 13:30:40 +0000 (15:30 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2017 13:30:40 +0000 (15:30 +0200)
commit8acb4cf2b3436652568d7a70228b166316181466
treed5bee2487229c7290dff47b2906b66227ed1fb02
parent7926516ff95ed9c8345ed4c4c4910f44ffbd5949
bpo-30602: Fix refleak in os.spawnv() (#2212)

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.
Modules/posixmodule.c