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-146250: Fix memory leak in re-initialization ofSyntaxError#146251

Open
bkap123 wants to merge 6 commits intopython:mainfrom
bkap123:syntax-error-leak
Open

gh-146250: Fix memory leak in re-initialization ofSyntaxError#146251
bkap123 wants to merge 6 commits intopython:mainfrom
bkap123:syntax-error-leak

Conversation

@bkap123
Copy link
Contributor

@bkap123bkap123 commentedMar 21, 2026
edited by bedevere-appbot
Loading

AddedPy_XDECREF/Py_XSETREF to avoid a memory leak when callingSyntaxError.__init__.

Added `Py_XDECREF`/`Py_XSETREF` to avoid a memory leak when calling`SyntaxError.__init__`.
Co-authored-by: AN Long <aisk@users.noreply.github.com>Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@picnixz
Copy link
Member

Sorry about the Py_CLEAR suggestion but I think creating new variables would be cleaner.

@bkap123
Copy link
ContributorAuthor

What's wrong with usingPy_CLEAR?

@picnixz
Copy link
Member

I think it is just better to hold temp vars and use XSETREF like inAttributeError.__init__

bkap123 reacted with thumbs up emoji

@picnixz
Copy link
Member

I will test the refleak bots so don't commit anything until they are done!

bkap123 reacted with thumbs up emoji

@picnixzpicnixz added 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsMar 21, 2026
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit22cff11 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146251%2Fmerge

If you want to schedule another build, you need to add the🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelMar 21, 2026
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@aiskaiskaisk left review comments

@picnixzpicnixzpicnixz left review comments

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

Assignees

No one assigned

Labels

awaiting reviewneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixes

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@bkap123@picnixz@bedevere-bot@aisk

[8]ページ先頭

©2009-2026 Movatter.jp