Skip to content

gh-145376: Fix reference leak in _lprof.c#145539

Open
eendebakpt wants to merge 1 commit intopython:mainfrom
eendebakpt:refleak_lsprof
Open

gh-145376: Fix reference leak in _lprof.c#145539
eendebakpt wants to merge 1 commit intopython:mainfrom
eendebakpt:refleak_lsprof

Conversation

@eendebakpt
Copy link
Contributor

@eendebakpt eendebakpt commented Mar 5, 2026

Skipping news. This only affects cases where people manually replace the sys.monitoring.MISSING sentinel.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The get_cfunc_from_callable() fix is surprising: PyCFunction_Check() is always true and so nobody noticed the reference leak before? Is it possible to trigger the leak with a reproducer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants