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
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5cd8dc7c-f42d-cac8-19db-c9a1e44d1447 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE04:5BCF5:89AD3A1:B1D4B42:697708D7 |
| html-safe-nonce | 2e93a2a2a0a78cef7ea57584c3a6de0b12d2fbd9b192ccd60a2cfe1287eb7d64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA0OjVCQ0Y1Ojg5QUQzQTE6QjFENEI0Mjo2OTc3MDhENyIsInZpc2l0b3JfaWQiOiIxMzU4Mzk4NDc5ODkzMjAzMTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 933d8e1e2bdba1fe8f581221310f10014b122837345081d299fb6cc5ed95464d |
| hovercard-subject-tag | pull_request:428475746 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-ldap/python-ldap/pull/341/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git |
| octolytics-dimension-user_id | 33895877 |
| octolytics-dimension-user_login | python-ldap |
| octolytics-dimension-repository_id | 111794776 |
| octolytics-dimension-repository_nwo | python-ldap/python-ldap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111794776 |
| octolytics-dimension-repository_network_root_nwo | python-ldap/python-ldap |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width