]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport to 2.3:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 4 Apr 2004 07:08:20 +0000 (07:08 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 4 Apr 2004 07:08:20 +0000 (07:08 +0000)
commit9ed9329248dca1fb3e867027ea9f3ed194ca6d45
tree31036e8a30510068052d22785d1b2d3bac92874c
parent4b9fe251935ef9ba63a308ca8f77a4463bf556d4
Backport to 2.3:

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