]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30601: Fix a refleak in WindowsConsoleIO (#2003) (#2008)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Jun 2017 21:13:12 +0000 (23:13 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2017 21:13:12 +0000 (23:13 +0200)
commit31b950ab86f5c99a18c16dbf1900b854b94e0659
tree952f36b6ca2216ad2f5357a139ba04a49422ac31
parentca1b66fd059758bbd6e2cc62c8f2adecefe8f942
bpo-30601: Fix a refleak in WindowsConsoleIO (#2003) (#2008)

Fix a reference leak in _io._WindowsConsoleIO: PyUnicode_FSDecoder()
always initialize decodedname when it succeed and it doesn't clear
input decodedname object.
(cherry picked from commit 29adc13bd797d9c9e7fcb893a7c49ce7f7ad388c)
Modules/_io/winconsoleio.c