Skip to content

gh-123290: fix reference leaks in the error-branches of _cursesmodule.c #123953

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 11, 2024

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Sep 11, 2024

Hello again. Following Victor's suggestion and a private discussion on Discord, I split the PR once again to only focus on ref-leaks in error branches.

- Remove some macros.
- Make some macros local instead.
- Do not use `error` label in `init()` function to prepare it for its conversion to `exec()`.
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 enabled auto-merge (squash) September 11, 2024 15:21
@vstinner vstinner merged commit 2938c3d into python:main Sep 11, 2024
37 checks passed
@picnixz picnixz deleted the curses/fix-refleaks-123290 branch September 11, 2024 15:52
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