René's URL Explorer Experiment


Title: gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` by ByteFlowing1337 · Pull Request #151588 · python/cpython · GitHub

Open Graph Title: gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` by ByteFlowing1337 · Pull Request #151588 · python/cpython

X Title: gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` by ByteFlowing1337 · Pull Request #151588 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Follows-up to #151154 Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126

X Description: Follows-up to #151154 Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126

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

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:76bcfa43-1759-0015-6281-dc0b1376e0ce
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC880:E6D1D:A10C96:DA5422:6A52022B
html-safe-noncee2e4a439e6515990d426f538bce9bd99c6b8551c7cb7b2652fea3d506b752729
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODgwOkU2RDFEOkExMEM5NjpEQTU0MjI6NkE1MjAyMkIiLCJ2aXNpdG9yX2lkIjoiMjYyOTk3MDQ5MTg4MDg5OTExNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd86d59e4bc616481c5cd5c266b5fcb25580388815fc0c5a0306e9b37b239ff09
hovercard-subject-tagpull_request:3882071184
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/151588/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fdfaf8b634336a25468c92c1d7b0f413fb3eb82a7a4684a7f318874dbf2f9432/python/cpython/pull/151588
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fdfaf8b634336a25468c92c1d7b0f413fb3eb82a7a4684a7f318874dbf2f9432/python/cpython/pull/151588
og:image:altFollows-up to #151154 Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameByteFlowing1337
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/151588#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151588
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F151588
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/151588
Reloadhttps://github.com/python/cpython/pull/151588
Reloadhttps://github.com/python/cpython/pull/151588
Please reload this pagehttps://github.com/python/cpython/pull/151588
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/151588
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
ByteFlowing1337:fix-151126-winapihttps://github.com/ByteFlowing1337/cpython/tree/fix-151126-winapi
Conversationhttps://github.com/python/cpython/pull/151588
Commits3 (3)https://github.com/python/cpython/pull/151588/commits
Checkshttps://github.com/python/cpython/pull/151588/checks
Files changedhttps://github.com/python/cpython/pull/151588/files
gh-151126: Add missing PyErr_NoMemory in _winapi.chttps://github.com/python/cpython/pull/151588#top
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
ByteFlowing1337:fix-151126-winapihttps://github.com/ByteFlowing1337/cpython/tree/fix-151126-winapi
https://github.com/ByteFlowing1337
ByteFlowing1337https://github.com/ByteFlowing1337
Jun 17, 2026https://github.com/python/cpython/pull/151588#issue-4681669760
Please reload this pagehttps://github.com/python/cpython/pull/151588
#151154https://github.com/python/cpython/pull/151154
Many places have missing PyErr_NoMemory() call after failing memory allocation #151126https://github.com/python/cpython/issues/151126
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/ByteFlowing1337
Fix missing PyErr_NoMemory in _winapi.chttps://github.com/python/cpython/pull/151588/commits/01a85ec7113098e5b3469686096d8e8b4d52951f
01a85echttps://github.com/python/cpython/pull/151588/commits/01a85ec7113098e5b3469686096d8e8b4d52951f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 17, 2026https://github.com/python/cpython/pull/151588#event-26850979048
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 17, 2026 https://github.com/python/cpython/pull/151588#ref-issue-4619485083
Many places have missing PyErr_NoMemory() call after failing memory allocation #151126 https://github.com/python/cpython/issues/151126
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151588#pullrequestreview-4569477355
View reviewed changes https://github.com/python/cpython/pull/151588/files/01a85ec7113098e5b3469686096d8e8b4d52951f
sobolevnhttps://github.com/sobolevn
https://github.com/python/cpython/pull/151588#pullrequestreview-4569477355
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/151588
Modules/_winapi.chttps://github.com/python/cpython/pull/151588/files/01a85ec7113098e5b3469686096d8e8b4d52951f#diff-42415407f8d0ef2d42e29d13d979f633e3543770e62c3871e1101ad532d336a8
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/ByteFlowing1337
Address reviewhttps://github.com/python/cpython/pull/151588/commits/59215a7e5d55431fd8db8995fdabd64e3e113a70
59215a7https://github.com/python/cpython/pull/151588/commits/59215a7e5d55431fd8db8995fdabd64e3e113a70
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151588#pullrequestreview-4570015097
View reviewed changes https://github.com/python/cpython/pull/151588/files/59215a7e5d55431fd8db8995fdabd64e3e113a70
sobolevnhttps://github.com/sobolevn
https://github.com/python/cpython/pull/151588#pullrequestreview-4570015097
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/151588
Modules/_winapi.chttps://github.com/python/cpython/pull/151588/files/59215a7e5d55431fd8db8995fdabd64e3e113a70#diff-42415407f8d0ef2d42e29d13d979f633e3543770e62c3871e1101ad532d336a8
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27190859123
https://github.com/sobolevn
Update Modules/_winapi.chttps://github.com/python/cpython/pull/151588/commits/578283061c55f290e773d4a79f6a163ecd8d82c6
5782830https://github.com/python/cpython/pull/151588/commits/578283061c55f290e773d4a79f6a163ecd8d82c6
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
June 25, 2026 10:21https://github.com/python/cpython/pull/151588#event-27190874031
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27190877426
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
a580029https://github.com/python/cpython/commit/a580029f1168cf87707b157865b6a6b89a77b7ad
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27192544850
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 25, 2026https://github.com/python/cpython/pull/151588#issuecomment-4798409989
@ByteFlowing1337https://github.com/ByteFlowing1337
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27192547658
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/151588#issuecomment-4798411795
GH-152182https://github.com/python/cpython/pull/152182
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27192579147
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/151588#issuecomment-4798412388
GH-152183https://github.com/python/cpython/pull/152183
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27192582104
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/151588#issuecomment-4798413273
GH-152184https://github.com/python/cpython/pull/152184
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 25, 2026https://github.com/python/cpython/pull/151588#event-27192586772
https://github.com/ByteFlowing1337
ByteFlowing1337https://github.com/ByteFlowing1337
June 25, 2026 10:52https://github.com/python/cpython/pull/151588#event-27193008878
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151588#ref-commit-8feedcc
https://github.com/miss-islington
https://github.com/ByteFlowing1337
https://github.com/sobolevn
[3.13]https://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
gh-151126https://github.com/python/cpython/issues/151126
: Add missinghttps://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
PyErr_NoMemoryhttps://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
inhttps://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
_winapi.chttps://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
(https://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
GH-151588https://github.com/python/cpython/pull/151588
8feedcchttps://github.com/python/cpython/commit/8feedccc114a5615e66af121d0b631fa64f28487
https://github.com/python/cpython/pull/151588
#152184https://github.com/python/cpython/pull/152184
gh-151126https://github.com/python/cpython/issues/151126
GH-151588https://github.com/python/cpython/pull/151588
a580029https://github.com/python/cpython/commit/a580029f1168cf87707b157865b6a6b89a77b7ad
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151588#ref-commit-b51f606
https://github.com/miss-islington
https://github.com/ByteFlowing1337
https://github.com/sobolevn
[3.14]https://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
gh-151126https://github.com/python/cpython/issues/151126
: Add missinghttps://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
PyErr_NoMemoryhttps://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
inhttps://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
_winapi.chttps://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
(https://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
GH-151588https://github.com/python/cpython/pull/151588
b51f606https://github.com/python/cpython/commit/b51f606af69f8732eca1d9f8ccc7cf28efdaaf97
https://github.com/python/cpython/pull/151588
#152183https://github.com/python/cpython/pull/152183
gh-151126https://github.com/python/cpython/issues/151126
GH-151588https://github.com/python/cpython/pull/151588
a580029https://github.com/python/cpython/commit/a580029f1168cf87707b157865b6a6b89a77b7ad
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151588#ref-commit-d6fd537
https://github.com/miss-islington
https://github.com/ByteFlowing1337
https://github.com/sobolevn
[3.15]https://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
gh-151126https://github.com/python/cpython/issues/151126
: Add missinghttps://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
PyErr_NoMemoryhttps://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
inhttps://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
_winapi.chttps://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
(https://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
GH-151588https://github.com/python/cpython/pull/151588
d6fd537https://github.com/python/cpython/commit/d6fd5378e33fd1e360c0dbcfe54dcbc65f06b4c1
https://github.com/python/cpython/pull/151588
#152182https://github.com/python/cpython/pull/152182
gh-151126https://github.com/python/cpython/issues/151126
GH-151588https://github.com/python/cpython/pull/151588
a580029https://github.com/python/cpython/commit/a580029f1168cf87707b157865b6a6b89a77b7ad
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F151588
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/cpython/pull/151588/files/59215a7e5d55431fd8db8995fdabd64e3e113a70
Please reload this pagehttps://github.com/python/cpython/pull/151588
https://github.com/ByteFlowing1337
https://github.com/sobolevn
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.