diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 3eb65a8a08b5a0..f668b0d1be60f9 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -910,6 +910,9 @@ def _fatal_error(self, exc, message='Fatal error on transport'): if self._transport: self._transport._force_close(exc) + self._ssl_buffer_view.release() + self._ssl_buffer = None + if isinstance(exc, OSError): if self._loop.get_debug(): logger.debug("%r: %s", self, message, exc_info=True) diff --git a/Misc/NEWS.d/next/Library/2023-12-21-10-02-18.gh-issue-109534.VujEyM.rst b/Misc/NEWS.d/next/Library/2023-12-21-10-02-18.gh-issue-109534.VujEyM.rst new file mode 100644 index 00000000000000..695816c1a3325d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-12-21-10-02-18.gh-issue-109534.VujEyM.rst @@ -0,0 +1,2 @@ +Fix a memory leak in :class:`asyncio.sslproto.SSLProtocol` when the SSL +handshake fails. Contributed by Jamie Phan. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy