Kaydet (Commit) 5e75829e authored tarafından Vinay Sajip's avatar Vinay Sajip

Closes #19523: Merged fix from 3.3.

......@@ -990,8 +990,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()
......
......@@ -47,6 +47,8 @@ Core and Builtins
Library
-------
- Issue #19523: Closed FileHandler leak which occurred when delay was set.
- Issue #19544 and #6516: Restore support for --user and --group parameters to
sdist command accidentally rolled back as part of the distutils2 rollback.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment