gh-151126: Fix missing memory errors in _interpchannelsmodule.c#151239
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM. 👍
Mixed approach is used in this file -- some function don't raise an exception, but return an error code (negative, not -1) which then will be converted to exception in handle_channel_error(). Changes in this PR look good, but please check all other returns returning NULL or -1. There may be other bugs in this file.
|
Sure! I will check other things as well and report them in a separate issue. Thanks a lot for the review! |
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @sobolevn, I could not cleanly backport this to |
|
GH-151265 is a backport of this pull request to the 3.15 branch. |
|
GH-151266 is a backport of this pull request to the 3.13 branch. |
PyErr_NoMemory()call after failing memory allocation #151126