mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #19523: Closed FileHandler leak which occurred when delay was set.
This commit is contained in:
parent
b11d6cb711
commit
a76157dca6
2 changed files with 5 additions and 1 deletions
|
|
@ -976,8 +976,10 @@ class FileHandler(StreamHandler):
|
|||
self.flush()
|
||||
if hasattr(self.stream, "close"):
|
||||
self.stream.close()
|
||||
StreamHandler.close(self)
|
||||
self.stream = None
|
||||
# Issue #19523: call unconditionally to
|
||||
# prevent a handler leak when delay is set
|
||||
StreamHandler.close(self)
|
||||
finally:
|
||||
self.release()
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #19523: Closed FileHandler leak which occurred when delay was set.
|
||||
|
||||
- Issue #13674: Prevented time.strftime from crashing on Windows when given
|
||||
a year before 1900 and a format of %y.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue