Skip to content

gh-83004: Clean up refleaks in _decimal initialisation - #99043

Closed
hauntsaninja wants to merge 5 commits into
python:mainfrom
hauntsaninja:gh-83004-decimal
Closed

gh-83004: Clean up refleaks in _decimal initialisation#99043
hauntsaninja wants to merge 5 commits into
python:mainfrom
hauntsaninja:gh-83004-decimal

Conversation

@hauntsaninja

@hauntsaninjahauntsaninja commented Nov 3, 2022

Copy link
Copy Markdown
Contributor

@hauntsaninja
hauntsaninja marked this pull request as draft November 3, 2022 06:44
extended_context_template));


/* Init mpd_ssize_t constants */

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Can't add a comment there because Github, but CHECK_INT(PyModule_AddObject(m, ssize_cm->name, obj)); for obj on L6038 does not leak obj on failure because its reference count is 1 going into PyModule_AddObject and we Py_CLEAR it on goto error inside CHECK_INT.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you update the PR to add a comment about that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ping on this; there's also a merge conflict.

@hauntsaninja
hauntsaninja marked this pull request as ready for review November 3, 2022 07:18
@rhettinger
rhettinger removed their request for review November 4, 2022 01:27
@erlend-aasland

Copy link
Copy Markdown
Contributor

Superseded by Serhiy's #106858.

@hauntsaninja
hauntsaninja deleted the gh-83004-decimal branch February 9, 2024 10:25
Sign up for freeto 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.

4 participants

@hauntsaninja@erlend-aasland@JelleZijlstra@bedevere-bot