GH-104584: Fix refleak when tracing through calls by brandtbucher · Pull Request #110593 · python/cpython
Conversation
This modifies _PyFunction_LookupByVersion to return a borrowed reference, which is what the caller assumes (and most internal "lookup" functions do, in general).
brandtbucher
changed the title
GH-104854: Fix refleak when tracing through calls
GH-104584: Fix refleak when tracing through calls
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I love how this already violates a likely future C API requirement. Glad that those requirements don't apply to internal APIs. :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters