René's URL Explorer Experiment


Title: gh-117142: ctypes: Fix memory leak of StgInfo by neonene · Pull Request #118139 · python/cpython · GitHub

Open Graph Title: gh-117142: ctypes: Fix memory leak of StgInfo by neonene · Pull Request #118139 · python/cpython

X Title: gh-117142: ctypes: Fix memory leak of StgInfo by neonene · Pull Request #118139 · python/cpython

Description: Fix intentional memory leak during a finish by introducing _PyType_GetBaseBySpec() with a type slot ID. Discussion: encukou/abi3#19 >python_d -X showrefcount -c "import ctypes" [188 refs, 132 blocks] # before [0 refs, 0 blocks] # after cc @encukou Issue: gh-117142

Open Graph Description: Fix intentional memory leak during a finish by introducing _PyType_GetBaseBySpec() with a type slot ID. Discussion: encukou/abi3#19 >python_d -X showrefcount -c "import ctypes" [188 re...

X Description: Fix intentional memory leak during a finish by introducing _PyType_GetBaseBySpec() with a type slot ID. Discussion: encukou/abi3#19 >python_d -X showrefcount -c "import ctypes&q...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:99e41805-83c1-a189-70ad-f985f23699f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA11A:14B7F1:51A20C:7159A3:6996F60E
html-safe-nonce29442f65d16b3f945d22ca2cddd3346394813317ac2c3d259752090593e2ffb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTFBOjE0QjdGMTo1MUEyMEM6NzE1OUEzOjY5OTZGNjBFIiwidmlzaXRvcl9pZCI6IjgwNDAxNjY1OTgxMTk4OTAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd779b40575e666df7873f23777f5895cc391a83137def8233a17d8956b8da209
hovercard-subject-tagpull_request:1833783856
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
twitter:imagehttps://avatars.githubusercontent.com/u/53406459?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/53406459?s=400&v=4
og:image:altFix intentional memory leak during a finish by introducing _PyType_GetBaseBySpec() with a type slot ID. Discussion: encukou/abi3#19 >python_d -X showrefcount -c "import ctypes" [188 re...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release507870406410608bdce33ff91e7b0361ec0c0ddc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118139%2Fcommits%2F773891f2090b03243c49d4b42f86fb26588aac48
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%2F118139%2Fcommits%2F773891f2090b03243c49d4b42f86fb26588aac48
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
Reloadhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
Reloadhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.6k 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 0 https://github.com/python/cpython/security
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
neonenehttps://github.com/neonene
python:mainhttps://github.com/python/cpython/tree/main
Conversation 3 https://github.com/python/cpython/pull/118139
Commits 14 https://github.com/python/cpython/pull/118139/commits
Checks 0 https://github.com/python/cpython/pull/118139/checks
Files changed https://github.com/python/cpython/pull/118139/files
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
gh-117142: ctypes: Fix memory leak of StgInfo https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#top
Show all changes 14 commits https://github.com/python/cpython/pull/118139/files
773891f introduce Py_id_static_spec type slot neonene Apr 21, 2024 https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
17b28bb introduce _PyType_GetBaseBySpec() neonene Apr 21, 2024 https://github.com/python/cpython/pull/118139/commits/17b28bb361aeb86bb470cb9c13ac61a36dd32dd0
4d319e4 fix _ctypes mem leak during a finish neonene Apr 21, 2024 https://github.com/python/cpython/pull/118139/commits/4d319e45c1a40458fa654a2ffb4710f8008f5f82
de5b42f fix redundant base check neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/de5b42f8e43f75cdf59bffe2818456dba2548086
3169285 fix a warning neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/3169285c358c9f5259cc3ccf156781745badb935
9f7f309 fix failing test neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/9f7f30964c9927c218c7635f0781750deae046a6
42a8aa7 fix typeslots.py neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/42a8aa74ef62cb87e839f6ab33d91efeceea59e5
9490389 Merge branch 'main' into basespec neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/949038936a703ef07485f59738b20e00e73a2e3f
554a8a1 add a comment neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/554a8a14b0aaa89e2050bc18c14d9278407b3a7d
ea1d78c use MRO if exists neonene Apr 22, 2024 https://github.com/python/cpython/pull/118139/commits/ea1d78c5e69e0028354e234b71e084982fee8196
d47b584 walk MRO from top to down neonene Apr 23, 2024 https://github.com/python/cpython/pull/118139/commits/d47b5841ff71ea5c242c46fcde600dd9d22ff84f
9b6bb44 remove get_module_state_by_def_final() neonene Apr 25, 2024 https://github.com/python/cpython/pull/118139/commits/9b6bb44b024e8e26a7983fe58a5954b5df12fd35
9b358fa Merge branch 'main' into basespec neonene Apr 25, 2024 https://github.com/python/cpython/pull/118139/commits/9b358fa1e34846107f8e6039b29f8c491c1fd35e
0ad4fbd Merge branch 'main' into basespec neonene May 8, 2024 https://github.com/python/cpython/pull/118139/commits/0ad4fbd1efc8ff4e247fb5e1a3bb23bc963136ad
Clear filters https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
object.h https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-7c8590641fc0d835bdab9395a95dbacfb2abb056cec4217466c0f3ca6cca8270
typeslots.h https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-63b5c73fa48e07a538ff7ebc9d8bdc6b4ffa5ee17f3e0e30f0ede132d70ff5c1
typeobject.c https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
typeslots.inc https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-8cd667265e8ad05f07f4eec481aef7f33f076636db1c9d1784657f969dd5a152
typeslots.py https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-a73636ed7a5100b61845ba62f1fcad6f96852c70d0755788985b5f9b6fea0b47
Next https://github.com/python/cpython/pull/118139/commits/17b28bb361aeb86bb470cb9c13ac61a36dd32dd0
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
https://github.com/neonene
neonenehttps://github.com/python/cpython/commits?author=neonene
Include/cpython/object.hhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-7c8590641fc0d835bdab9395a95dbacfb2abb056cec4217466c0f3ca6cca8270
View file https://github.com/python/cpython/blob/773891f2090b03243c49d4b42f86fb26588aac48/Include/cpython/object.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/118139/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-7c8590641fc0d835bdab9395a95dbacfb2abb056cec4217466c0f3ca6cca8270
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-7c8590641fc0d835bdab9395a95dbacfb2abb056cec4217466c0f3ca6cca8270
Include/typeslots.hhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-63b5c73fa48e07a538ff7ebc9d8bdc6b4ffa5ee17f3e0e30f0ede132d70ff5c1
View file https://github.com/python/cpython/blob/773891f2090b03243c49d4b42f86fb26588aac48/Include/typeslots.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/118139/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-63b5c73fa48e07a538ff7ebc9d8bdc6b4ffa5ee17f3e0e30f0ede132d70ff5c1
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L217
Objects/typeobject.chttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
View file https://github.com/python/cpython/blob/773891f2090b03243c49d4b42f86fb26588aac48/Objects/typeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/118139/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L217
Objects/typeslots.inchttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-8cd667265e8ad05f07f4eec481aef7f33f076636db1c9d1784657f969dd5a152
View file https://github.com/python/cpython/blob/773891f2090b03243c49d4b42f86fb26588aac48/Objects/typeslots.inc
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L217
Objects/typeslots.pyhttps://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-a73636ed7a5100b61845ba62f1fcad6f96852c70d0755788985b5f9b6fea0b47
View file https://github.com/python/cpython/blob/773891f2090b03243c49d4b42f86fb26588aac48/Objects/typeslots.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/118139/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-a73636ed7a5100b61845ba62f1fcad6f96852c70d0755788985b5f9b6fea0b47
https://github.com/python/cpython/pull/118139/commits/773891f2090b03243c49d4b42f86fb26588aac48#diff-a73636ed7a5100b61845ba62f1fcad6f96852c70d0755788985b5f9b6fea0b47
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.