]> granicus.if.org Git - python/commit
bpo-30602: Fix refleak in os.spawnv() (#2212) (#2486)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 29 Jun 2017 08:53:22 +0000 (10:53 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2017 08:53:22 +0000 (10:53 +0200)
commitb78fbaaeab9df8cfbbdae3d5faf2d1537d73e43b
tree4ed9067f86617ef80a567da50255c491905425ac
parent38d6a40898940d2c62c637fcc8acce05e75de5c2
bpo-30602: Fix refleak in os.spawnv() (#2212) (#2486)

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