René's URL Explorer Experiment


Title: gh-113055: Fix memory leak of obmalloc state by nascheme · Pull Request #113218 · python/cpython · GitHub

Open Graph Title: gh-113055: Fix memory leak of obmalloc state by nascheme · Pull Request #113218 · python/cpython

X Title: gh-113055: Fix memory leak of obmalloc state by nascheme · Pull Request #113218 · python/cpython

Description: Free the obmalloc arenas, radix tree nodes and allarenas array when the interpreter state is freed. Issue: Memory leak on executables embedded with 3.13 #113055

Open Graph Description: Free the obmalloc arenas, radix tree nodes and allarenas array when the interpreter state is freed. Issue: Memory leak on executables embedded with 3.13 #113055

X Description: Free the obmalloc arenas, radix tree nodes and allarenas array when the interpreter state is freed. Issue: Memory leak on executables embedded with 3.13 #113055

Opengraph URL: https://github.com/python/cpython/pull/113218

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1508ced0-ef75-91b9-96c0-53aebbe6935d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id936C:31FE0A:9FF8E4:DF1421:696A25ED
html-safe-nonce41e936910312a72039a17f1a821886a7244914ffbf0eb88bfcf4965f6050cd68
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzZDOjMxRkUwQTo5RkY4RTQ6REYxNDIxOjY5NkEyNUVEIiwidmlzaXRvcl9pZCI6IjQ3MDcyNDQyNDA3NTg1MTUxODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2617baca9626c5dbd4b901576900951647c3f52829d23ce1d9364832c135a8d5
hovercard-subject-tagpull_request:1647117442
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/113218/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f8fe278ea82dc6db7872208e6e343a4b122f8fe3d86da2bf4b96ae8bf702b9d6/python/cpython/pull/113218
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f8fe278ea82dc6db7872208e6e343a4b122f8fe3d86da2bf4b96ae8bf702b9d6/python/cpython/pull/113218
og:image:altFree the obmalloc arenas, radix tree nodes and allarenas array when the interpreter state is freed. Issue: Memory leak on executables embedded with 3.13 #113055
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenascheme
hostnamegithub.com
expected-hostnamegithub.com
Nonea1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef472b8e6c7b3fdd5d0354972a3f4c516289bf0be
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/113218#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F113218
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F113218
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/113218
Reloadhttps://github.com/python/cpython/pull/113218
Reloadhttps://github.com/python/cpython/pull/113218
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/113218
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/113218
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/113218#issue-comment-box
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:obmalloc_arena_leak_fixhttps://github.com/nascheme/cpython/tree/obmalloc_arena_leak_fix
gh-113055: Fix memory leak of obmalloc state https://github.com/python/cpython/pull/113218#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:obmalloc_arena_leak_fixhttps://github.com/nascheme/cpython/tree/obmalloc_arena_leak_fix
Conversation 25 https://github.com/python/cpython/pull/113218
Commits 2 https://github.com/python/cpython/pull/113218/commits
Checks 0 https://github.com/python/cpython/pull/113218/checks
Files changed https://github.com/python/cpython/pull/113218/files
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 16, 2023https://github.com/python/cpython/pull/113218#issue-2044969926
Please reload this pagehttps://github.com/python/cpython/pull/113218
Memory leak on executables embedded with 3.13 #113055https://github.com/python/cpython/issues/113055
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
Fix memory leak of obmalloc state.https://github.com/python/cpython/pull/113218/commits/0d0c5a95aa11f496c4fac1992f1e99ac160d087e
0d0c5a9https://github.com/python/cpython/pull/113218/commits/0d0c5a95aa11f496c4fac1992f1e99ac160d087e
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Dec 16, 2023 https://github.com/python/cpython/pull/113218#ref-issue-2039792989
Memory leak on executables embedded with 3.13 #113055 https://github.com/python/cpython/issues/113055
https://github.com/nascheme
naschemehttps://github.com/nascheme
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
December 16, 2023 21:44https://github.com/python/cpython/pull/113218#event-11266661416
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 17, 2023 https://github.com/python/cpython/pull/113218#pullrequestreview-1785323062
View reviewed changes https://github.com/python/cpython/pull/113218/files/0d0c5a95aa11f496c4fac1992f1e99ac160d087e
Objects/obmalloc.chttps://github.com/python/cpython/pull/113218/files/0d0c5a95aa11f496c4fac1992f1e99ac160d087e#diff-399a22135f328b4e42b0722ef216587945eedf2d8c103a584a3dca5b30650329
neonenehttps://github.com/neonene
Dec 17, 2023https://github.com/python/cpython/pull/113218#discussion_r1428978008
Please reload this pagehttps://github.com/python/cpython/pull/113218
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
Fix for various config options.https://github.com/python/cpython/pull/113218/commits/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
4471ac7https://github.com/python/cpython/pull/113218/commits/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 17, 2023https://github.com/python/cpython/pull/113218#issuecomment-1859156970
4471ac7https://github.com/python/cpython/commit/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 17, 2023https://github.com/python/cpython/pull/113218#issuecomment-1859286871
4471ac7https://github.com/python/cpython/commit/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 17, 2023https://github.com/python/cpython/pull/113218#issuecomment-1859296830
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1859669380
Please reload this pagehttps://github.com/python/cpython/pull/113218
cpython/Tools/c-analyzer/cpython/globals-to-fix.tsvhttps://github.com/python/cpython/blob/2b93f5224216d10f8119373e72b5c2b3984e0af6/Tools/c-analyzer/cpython/globals-to-fix.tsv#L379-L381
2b93f52https://github.com/python/cpython/commit/2b93f5224216d10f8119373e72b5c2b3984e0af6
#44470 (comment)https://github.com/python/cpython/issues/44470#issuecomment-1094027594
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861026047
gh-71587https://github.com/python/cpython/issues/71587
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861035232
#113218 (comment)https://github.com/python/cpython/pull/113218#issuecomment-1859156970
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023 https://github.com/python/cpython/pull/113218#pullrequestreview-1787406901
View reviewed changes https://github.com/python/cpython/pull/113218/files/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
https://github.com/python/cpython/pull/113218#pullrequestreview-1787406901
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
Objects/obmalloc.chttps://github.com/python/cpython/pull/113218/files/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9#diff-399a22135f328b4e42b0722ef216587945eedf2d8c103a584a3dca5b30650329
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#discussion_r1430462564
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
Objects/obmalloc.chttps://github.com/python/cpython/pull/113218/files/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9#diff-399a22135f328b4e42b0722ef216587945eedf2d8c103a584a3dca5b30650329
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#discussion_r1430469936
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
naschemehttps://github.com/nascheme
Dec 18, 2023https://github.com/python/cpython/pull/113218#discussion_r1430556194
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
Objects/obmalloc.chttps://github.com/python/cpython/pull/113218/files/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9#diff-399a22135f328b4e42b0722ef216587945eedf2d8c103a584a3dca5b30650329
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#discussion_r1430472267
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861188336
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861316233
#113218 (comment)https://github.com/python/cpython/pull/113218#issuecomment-1859156970
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861401392
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861519484
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861827666
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 18, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861839428
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 19, 2023https://github.com/python/cpython/pull/113218#issuecomment-1861994989
Please reload this pagehttps://github.com/python/cpython/pull/113218
#110411https://github.com/python/cpython/issues/110411
PEP 554https://peps.python.org/pep-0554/#interpreter-restrictions
C-APIhttps://docs.python.org/3/c-api/init.html?highlight=check_multi_interp_extensions#c.PyInterpreterConfig
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 19, 2023https://github.com/python/cpython/pull/113218#issuecomment-1863131047
#110411https://github.com/python/cpython/issues/110411
PEP 554https://peps.python.org/pep-0554/#interpreter-restrictions
C-APIhttps://docs.python.org/3/c-api/init.html?highlight=check_multi_interp_extensions#c.PyInterpreterConfig
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 20, 2023https://github.com/python/cpython/pull/113218#issuecomment-1865058562
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/neonene
neonenehttps://github.com/neonene
Dec 22, 2023https://github.com/python/cpython/pull/113218#issuecomment-1867280350
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 22, 2023https://github.com/python/cpython/pull/113218#issuecomment-1868085706
Please reload this pagehttps://github.com/python/cpython/pull/113218
gh-113412https://github.com/python/cpython/pull/113412
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/neonene
neonenehttps://github.com/neonene
Jan 25, 2024 https://github.com/python/cpython/pull/113218#ref-issue-2099200436
Extension Module Handles Are Never Closed #114538 https://github.com/python/cpython/issues/114538
https://github.com/nascheme
naschemehttps://github.com/nascheme
Oct 15, 2024https://github.com/python/cpython/pull/113218#issuecomment-2415311446
GH-113412https://github.com/python/cpython/pull/113412
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
Oct 15, 2024https://github.com/python/cpython/pull/113218#event-14665583932
https://github.com/nascheme
naschemehttps://github.com/nascheme
Apr 28, 2025https://github.com/python/cpython/pull/113218#issuecomment-2836513108
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
naschemehttps://github.com/nascheme
Apr 28, 2025https://github.com/python/cpython/pull/113218#event-17441816248
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F113218
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/python/cpython/pull/113218/files/4471ac7adeaf85f9a0c99993ab44e5d8293a58a9
https://github.com/neonene
neonene https://github.com/neonene
https://github.com/python/cpython/pull/113218/files/0d0c5a95aa11f496c4fac1992f1e99ac160d087e
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
Please reload this pagehttps://github.com/python/cpython/pull/113218
https://github.com/nascheme
https://github.com/neonene
https://github.com/ericsnowcurrently
https://github.com/tim-one
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.