Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-144307: fix refcount leak infinalize_remove_modules()#144308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
hyongtao-code wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromhyongtao-code:fix-mem-leak

Conversation

@hyongtao-code
Copy link
Contributor

@hyongtao-codehyongtao-code commentedJan 28, 2026
edited
Loading

PyIter_Next() returns a new reference, butfinalize_remove_modules() failed to DECREFkey whenPyObject_GetItem() returns NULL. Fix by DECREF'ingkey before continuing.

`PyIter_Next()` returns a new reference, but `finalize_remove_modules()`failed to DECREF `key` when `PyObject_GetItem()`` returns NULL.Fix by DECREF'ing `key` before continuing.Signed-off-by: Yongtao Huang <yongtaoh2022@gamil.com>
Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

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

This is user-facing so it needs a news entry.

@hyongtao-code
Copy link
ContributorAuthor

news entry

Thanks for your reminder.

Copy link
Contributor

@sergey-miryanovsergey-miryanov left a comment

Choose a reason for hiding this comment

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

LGTM

hyongtao-code reacted with laugh emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ZeroIntensityZeroIntensityZeroIntensity left review comments

@sergey-miryanovsergey-miryanovsergey-miryanov approved these changes

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hyongtao-code@sergey-miryanov@ZeroIntensity

[8]ページ先頭

©2009-2026 Movatter.jp