]> granicus.if.org Git - python/commit
bpo-30602: Fix refleak in os.spawnve() (#2184)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Jun 2017 12:26:21 +0000 (14:26 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2017 12:26:21 +0000 (14:26 +0200)
commit526b22657cb18fe79118c2ea68511aca09430c2c
treeff0da0de5bc2623e134ebe4b871d230b3266c804
parent3402f7268897db15053866e1e68404cfa0e02706
bpo-30602: Fix refleak in os.spawnve() (#2184)

When os.spawnve() 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