| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:af7effed-9107-bd26-9a5a-4f4ad3e3b818 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8A94:3B6B85:1862998:2028267:6B06753C |
| html-safe-nonce | 93d9316f710a62cb4ff6c0d75010b65a61d1417d1431bc9aca9d71bdeeebe2cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTk0OjNCNkI4NToxODYyOTk4OjIwMjgyNjc6NkIwNjc1M0MiLCJ2aXNpdG9yX2lkIjoiMzAzMDA5MzU2MTE3ODY1Nzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7f20b6c5c05c9d9cb5caf20b9538e1464c10d8195484237710415d5748cfee30 |
| hovercard-subject-tag | pull_request:2063557302 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/123910/files |
| twitter:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| og:image:alt | In this PR, we prepare the cursesmodule for #123630 and clean-up some bits. To that end, we:
ensure that error branches correctly free resources (even if the error is usually "critical",... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/123910/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123910%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123910%2Ffiles |
| 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%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/123910/files |
| Reload | https://github.com/python/cpython/pull/123910/files |
| Reload | https://github.com/python/cpython/pull/123910/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| picnixz | https://github.com/picnixz |
| python:main | https://github.com/python/cpython/tree/main |
| picnixz:curses/consistent-cleanup-123630 | https://github.com/picnixz/cpython/tree/curses/consistent-cleanup-123630 |
|
Conversation
29
| https://github.com/python/cpython/pull/123910 |
|
Commits
12
| https://github.com/python/cpython/pull/123910/commits |
|
Checks
0
| https://github.com/python/cpython/pull/123910/checks |
|
Files changed
| https://github.com/python/cpython/pull/123910/files |
| Please reload this page | https://github.com/python/cpython/pull/123910/files |
|
gh-123290: curses: fix reference leaks in error-branches and cleanup module's initialization
| https://github.com/python/cpython/pull/123910/files#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/123910/files |
|
3ce06f4
Fix reference leaks in the error-branches.
picnixz Aug 24, 2024
| https://github.com/python/cpython/pull/123910/commits/3ce06f4ca260d1a66960cb9bf3861e9f5a077ca3 |
|
81bcde8
protect macros expansions using `do { ... } while (0)` constructions
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/81bcde89122edb4c0a914ba7306ca51edaabcffd |
|
848cc3e
use uppercase global flags
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/848cc3e8f61a32f68330508a76fa082a9aa50676 |
|
ea3fd8d
cosmetic changes
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/ea3fd8da7a8b6066b7f9e2289c74d95c19e6923c |
|
557a53c
improve `SetDictInt` macro
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/557a53c8eba83b4c3a379e2faa39b448dfc45dcd |
|
a92fc1f
undef utililty macros
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/a92fc1fb8094356bdc4c49491cb9eb7c84b14e95 |
|
9ce0289
improve macro usage
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/9ce028946f6e4f03c5ee603a36a0b7b25587ae43 |
|
fd7372a
update globals
picnixz Sep 10, 2024
| https://github.com/python/cpython/pull/123910/commits/fd7372aaaa58fbf2e299122446c4c6571314b5c8 |
|
384716d
address Victor's review
picnixz Sep 11, 2024
| https://github.com/python/cpython/pull/123910/commits/384716d2ca3a8d057d6dcf0fa0a45b15a61e88a7 |
|
24f47a1
fix compilation if `Py_GIL_DISABLED` is defined
picnixz Sep 11, 2024
| https://github.com/python/cpython/pull/123910/commits/24f47a11622d30055ee9a1de248ff50f6dbe5f30 |
|
4a1003c
use a local macro
picnixz Sep 11, 2024
| https://github.com/python/cpython/pull/123910/commits/4a1003c745cd8c2fe572c949d940a677fda05661 |
|
356b00c
remove unused undefs
picnixz Sep 11, 2024
| https://github.com/python/cpython/pull/123910/commits/356b00c15b27294a7d45b96711f58c88dba5ee0f |
|
Clear filters
| https://github.com/python/cpython/pull/123910/files |
| Please reload this page | https://github.com/python/cpython/pull/123910/files |
| Please reload this page | https://github.com/python/cpython/pull/123910/files |
|
_cursesmodule.c
| https://github.com/python/cpython/pull/123910/files#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/123910/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
| Please reload this page | https://github.com/python/cpython/pull/123910/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |