René's URL Explorer Experiment


Title: Add error handling to Python API calls in LDAPraise_for_message by encukou · Pull Request #341 · python-ldap/python-ldap · GitHub

Open Graph Title: Add error handling to Python API calls in LDAPraise_for_message by encukou · Pull Request #341 · python-ldap/python-ldap

X Title: Add error handling to Python API calls in LDAPraise_for_message by encukou · Pull Request #341 · python-ldap/python-ldap

Description: Add CPython style error handling to LDAPraise_for_message: ensure pointers are set to NULL when freed, and free all non-NULL pointers at the end. Use goto to jump to the cleanup. (The label is usually called error, which here clashes with a variable name). Note that Python API sets the current exception on failure. If something else than C API fails, PyErr_NoMemory or PyErr_SetObject is called before returning NULL. I recommend reviewing the diff with whitespace changes hidden (-w in Git CLI, ?w=1 in GitHub URLs).

Open Graph Description: Add CPython style error handling to LDAPraise_for_message: ensure pointers are set to NULL when freed, and free all non-NULL pointers at the end. Use goto to jump to the cleanup. (The label is usua...

X Description: Add CPython style error handling to LDAPraise_for_message: ensure pointers are set to NULL when freed, and free all non-NULL pointers at the end. Use goto to jump to the cleanup. (The label is usua...

Opengraph URL: https://github.com/python-ldap/python-ldap/pull/341

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5cd8dc7c-f42d-cac8-19db-c9a1e44d1447
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE04:5BCF5:89AD3A1:B1D4B42:697708D7
html-safe-nonce2e93a2a2a0a78cef7ea57584c3a6de0b12d2fbd9b192ccd60a2cfe1287eb7d64
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA0OjVCQ0Y1Ojg5QUQzQTE6QjFENEI0Mjo2OTc3MDhENyIsInZpc2l0b3JfaWQiOiIxMzU4Mzk4NDc5ODkzMjAzMTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac933d8e1e2bdba1fe8f581221310f10014b122837345081d299fb6cc5ed95464d
hovercard-subject-tagpull_request:428475746
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-ldap/python-ldap/pull/341/files
twitter:imagehttps://avatars.githubusercontent.com/u/302922?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/302922?s=400&v=4
og:image:altAdd CPython style error handling to LDAPraise_for_message: ensure pointers are set to NULL when freed, and free all non-NULL pointers at the end. Use goto to jump to the cleanup. (The label is usua...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git
octolytics-dimension-user_id33895877
octolytics-dimension-user_loginpython-ldap
octolytics-dimension-repository_id111794776
octolytics-dimension-repository_nwopython-ldap/python-ldap
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id111794776
octolytics-dimension-repository_network_root_nwopython-ldap/python-ldap
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef752335dbbea672610081196a1998e39aec5e14b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fpull%2F341%2Ffiles
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fpull%2F341%2Ffiles
Sign up https://patch-diff.githubusercontent.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-ldap%2Fpython-ldap
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
python-ldap https://patch-diff.githubusercontent.com/python-ldap
python-ldaphttps://patch-diff.githubusercontent.com/python-ldap/python-ldap
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Fork 137 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Star 436 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues 83 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests 19 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects 0 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security 3 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-ldap%2Fpython-ldap%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap%2Fissues%2Fnew%2Fchoose
encukouhttps://patch-diff.githubusercontent.com/encukou
python-ldap:mainhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/tree/main
encukou:exceptionshttps://patch-diff.githubusercontent.com/encukou/python-ldap/tree/exceptions
Conversation 6 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341
Commits 1 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/commits
Checks 0 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/checks
Files changed https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Add error handling to Python API calls in LDAPraise_for_message https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
43e8e75 Add CPython-style error handling to Python API calls in LDAPraise_for… encukou Jun 5, 2020 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/commits/43e8e75a1e332c6e0640f54a1e87538cbb659dc9
Clear filters https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
Modules/constants.chttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#diff-676c71dd15cf5089dacb1555221c30e43c8dbb36fbdaeb03a0fc52e2cfbe73d1
View file https://patch-diff.githubusercontent.com/python-ldap/python-ldap/blob/43e8e75a1e332c6e0640f54a1e87538cbb659dc9/Modules/constants.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#diff-676c71dd15cf5089dacb1555221c30e43c8dbb36fbdaeb03a0fc52e2cfbe73d1
tiranhttps://patch-diff.githubusercontent.com/tiran
Sep 17, 2021https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#r710918885
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
encukouhttps://patch-diff.githubusercontent.com/encukou
Sep 17, 2021https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#r710972789
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
droideckhttps://patch-diff.githubusercontent.com/droideck
Aug 5, 2020https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#r465906763
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/341/files#diff-676c71dd15cf5089dacb1555221c30e43c8dbb36fbdaeb03a0fc52e2cfbe73d1
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.