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-145376: Fix various refleaks Objects/#145609

Open
eendebakpt wants to merge 10 commits intopython:mainfrom
eendebakpt:refleaks_misc
Open

gh-145376: Fix various refleaks Objects/#145609
eendebakpt wants to merge 10 commits intopython:mainfrom
eendebakpt:refleaks_misc

Conversation

@eendebakpt
Copy link
Contributor

@eendebakpteendebakpt commentedMar 6, 2026
edited by bedevere-appbot
Loading

attr_old = getattrs(self->win);
if (curses_wattrset(self, attr, "addstr") < 0) {
curses_release_wstr(strtype, wstr);
Py_DECREF(bytesobj);
Copy link
Member

Choose a reason for hiding this comment

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

Be careful here.PyCurses_ConvertToString has a weird return type so youmight not necessarily havebytesobj set to something (it might be inwstr instead).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch!

Copy link
Member

Choose a reason for hiding this comment

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

Could you move this line after theif instead so we don't have to worry about cleaning up the ref?

eendebakpt reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra left review comments

@picnixzpicnixzpicnixz left review comments

@ZeroIntensityZeroIntensityAwaiting requested review from ZeroIntensityZeroIntensity 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

@eendebakpt@JelleZijlstra@picnixz

[8]ページ先頭

©2009-2026 Movatter.jp