X Tutup
Skip to content

gh-145376: Fix refleaks and double decref for code in Python/#145666

Merged
vstinner merged 3 commits intopython:mainfrom
eendebakpt:misc_errors
Mar 10, 2026
Merged

gh-145376: Fix refleaks and double decref for code in Python/#145666
vstinner merged 3 commits intopython:mainfrom
eendebakpt:misc_errors

Conversation

@eendebakpt
Copy link
Contributor

@eendebakpt eendebakpt commented Mar 9, 2026

Comment on lines 2502 to 2503
Py_DECREF(path);
return NULL;
Copy link
Member

Choose a reason for hiding this comment

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

You may reuse goto error; here.

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

@vstinner vstinner merged commit 3f7141d into python:main Mar 10, 2026
57 checks passed
@vstinner
Copy link
Member

Merged, thanks.

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

X Tutup