| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Darn, I forgot to add error handling for PyDict_SetItemString. I'll create a follow-up PR for that: gh-103420 |
Sorry, something went wrong.
| if (version == NULL) { | ||
| goto error; | ||
| } | ||
| st = PyModule_AddObjectRef(m, "CRT_ASSEMBLY_VERSION", version); |
There was a problem hiding this comment.
@erlend-aasland Just FYI, the modsupport functions allow passing in NULL provided an error has already occurred, and they just let it chain. So the code here was fine before.
No need to revert now though.
Sorry, something went wrong.
There was a problem hiding this comment.
TIL! Sorry for not waiting on your review.
Sorry, something went wrong.
There was a problem hiding this comment.
However, there was a leak if PyModule_AddObject failed, since that API only eat refs if successful.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry I should have been more careful in this.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.