]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-116810: fix memory leak in ssl module (GH-123249) (GH-124801)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Sep 2024 20:02:13 +0000 (22:02 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 20:02:13 +0000 (20:02 +0000)
commit186cc407e2341c84e048f3f88f193741ea763b39
tree4d9bb5d4ca127122a61eb15b562a8c0fb6122345
parent3b20c4a8370c2ac75efdb0ffcb370824ac959f01
[3.12] gh-116810: fix memory leak in ssl module (GH-123249) (GH-124801)

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