]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-116810: fix memory leak in ssl module (GH-123249) (#124800)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:46:29 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:46:29 +0000 (23:46 +0200)
commitf5f1d45f1704a31c85d92b88dfe36c05946baf8a
treed7598425a4c56ac619aa9bcf5cec315a0b0def26
parenta93716f6958f90590ffed329a04fd3acbbd7e6f2
[3.13] gh-116810: fix memory leak in ssl module (GH-123249) (#124800)

gh-116810: fix memory leak in ssl module (GH-123249)

Resolve a memory leak introduced in CPython 3.10's :mod:`ssl` when the :attr:`ssl.SSLSocket.session` property was accessed. Speeds up read and write access to said property by no longer unnecessarily cloning session objects via serialization.

(cherry picked from commit 7e7223e18f58ec48fb36a68fb75b5c5b7a45042a)

Co-authored-by: Jeffrey R. Van Voorst <jeff.vanvoorst@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Misc/NEWS.d/next/Library/2024-08-23-15-49-10.gh-issue-116810.QLBUU8.rst [new file with mode: 0644]
Modules/_ssl.c