Skip to content

gh-124606: Fix reference leak in error path in datetime_fromisoformat in _datetimemodule.c - #124607

Merged
Eclips4 merged 1 commit into
python:mainfrom
Eclips4:issue-124606
Sep 26, 2024
Merged

gh-124606: Fix reference leak in error path in datetime_fromisoformat in _datetimemodule.c#124607
Eclips4 merged 1 commit into
python:mainfrom
Eclips4:issue-124606

Conversation

@Eclips4

@Eclips4Eclips4 commented Sep 26, 2024

Copy link
Copy Markdown
Member

@Eclips4Eclips4 changed the title Fix reference leak in _datetimemodule.cgh-124606: Fix reference leak in _datetimemodule.cSep 26, 2024

@picnixzpicnixz left a comment

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.

Thank you for the fix! (though I find the gotos a bit too hard to follow in this specific function). Do you want to run the refleak build bots?

@vstinnervstinner left a comment

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.

LGTM.

I confirm that ./python -m test test_datetime -R 3:3 no longer leaks with this change.

For the PR title, you may refer to datetime_fromisoformat() which is more precise ;-)

@vstinner

Copy link
Copy Markdown
Member

Do you want to run the refleak build bots?

It's not needed. I tested manually.

@Eclips4Eclips4 changed the title gh-124606: Fix reference leak in _datetimemodule.cgh-124606: Fix reference leak in error path in datetime_fromisoformat in _datetimemodule.cSep 26, 2024
@Eclips4
Eclips4 enabled auto-merge (squash) September 26, 2024 15:18
@Eclips4
Eclips4 disabled auto-merge September 26, 2024 15:23
@Eclips4
Eclips4 enabled auto-merge (squash) September 26, 2024 15:26
@Eclips4
Eclips4 merged commit 9c98fda into python:mainSep 26, 2024
@Eclips4
Eclips4 deleted the issue-124606 branch September 26, 2024 15:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Eclips4@vstinner@picnixz