gh-142516: fix reference leaks in `ssl.SSLContext` objects by picnixz · Pull Request #143685 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

picnixz:fix/ssl/leak-gc-142516

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Observed memory leak in ssl library: Python 3.14 GC issue #142516

: fix reference leaks in

awaiting core review

awaiting core review

test! add regression tests

🔨 test-with-refleak-buildbots

🔨 test-with-refleak-buildbots

fix tests on Windows

Merge branch 'main' into fix/ssl/leak-gc-142516

needs backport to 3.13

needs backport to 3.13

needs backport to 3.14

needs backport to 3.14

[3.14] gh-142516: fix reference leaks in `ssl.SSLContext` objects (GH-143685) (cherry picked from commit 3a2a686cc45de2fb685ff332b7b914f27f660680) Co-authored-by: Bénédikt Tran <[email protected]>

bedevere-app Bot commented Feb 21, 2026

bedevere-app Bot commented Feb 21, 2026

GH-145075 is a backport of this pull request to the 3.14 branch.

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

: fix reference leaks in

: fix reference leaks in

: fix reference leaks in

: fix reference leaks in

: fix reference leaks in

: fix reference leaks in