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-146355: Fixmain_module ref leak in_PyRun_SimpleStringFlagsWithName#146356

Open
A0su wants to merge 1 commit intopython:mainfrom
A0su:Fix-SimpleStringFlagsWithName-main-refleak
Open

gh-146355: Fixmain_module ref leak in_PyRun_SimpleStringFlagsWithName#146356
A0su wants to merge 1 commit intopython:mainfrom
A0su:Fix-SimpleStringFlagsWithName-main-refleak

Conversation

@A0su
Copy link

gh-146355: Fixmain_module ref leak in_PyRun_SimpleStringFlagsWithName

This is a sub-issue for#146102 and original gist details can be foundhere

Whenthe_name is NULL we'll fail to callPy_DECREF onmain_module. I used the same goto pattern as_PyRun_SimpleFileObject to fix this.

I omitted a new test entry as we have indirect coverage of functionality intest_embed.py. Not sure if it makes sense for the scope of fixing the ref leak to include the additional code for a test in test_run.py (which has a TODO for this function).

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@python-cla-bot
Copy link

python-cla-botbot commentedMar 24, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

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

Reviewers

@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.

1 participant

@A0su

[8]ページ先頭

©2009-2026 Movatter.jp