]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
If a file is opened with an explicit buffer size >= 1, repeated
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 4 Apr 2004 07:01:35 +0000 (07:01 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 4 Apr 2004 07:01:35 +0000 (07:01 +0000)
commit4e10ed3b86cf08211ef0c9c5408799195c2c1881
treeaa4ba6c69b025b087a79eea302c9ed6d0ccb6ca8
parentba813e20892157befdefa60df88c19bae52fc766
If a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first close().     [bug introduced with patch #788249]

Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.
Lib/test/test_file.py
Misc/NEWS
Objects/fileobject.c