]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329)
authorstratakis <cstratak@redhat.com>
Thu, 14 Mar 2019 15:35:40 +0000 (16:35 +0100)
committerVictor Stinner <vstinner@redhat.com>
Thu, 14 Mar 2019 15:35:40 +0000 (16:35 +0100)
commit2dd6e079ae71f3723fbea2582ac080be06a6968f
tree036994b21559ddd8a504d412b91a440860b422b0
parentfb3336acfde3204fd01ce519ef24cc18a94dfa3f
[2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329)

Fix a reference leak in _bufferedreader_read_all():
_io.BufferedIOMixin.read() leaks a reference on 'data'
when it reads the whole file content but flush() fails.
Misc/NEWS.d/next/Library/2019-03-14-15-42-48.bpo-36289.wYKS47.rst [new file with mode: 0644]
Modules/_io/bufferedio.c