FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-124606: Fix reference leak in error path in `datetime_fromisoformat` in `_datetimemodule.c` by Eclips4 · Pull Request #124607 · python/cpython · GitHub

/ cpython Public

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 commented Sep 26, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Eclips4 requested review from picnixz and vstinner September 26, 2024 15:06
Eclips4 changed the title Fix reference leak in _datetimemodule.c gh-124606: Fix reference leak in _datetimemodule.c Sep 26, 2024

picnixz left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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?

vstinner 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 ;-)

Copy link
Copy Markdown
Member

Do you want to run the refleak build bots?

It's not needed. I tested manually.

Eclips4 changed the title gh-124606: Fix reference leak in _datetimemodule.c gh-124606: Fix reference leak in error path in datetime_fromisoformat in _datetimemodule.c Sep 26, 2024
Eclips4 enabled auto-merge (squash) September 26, 2024 15:18
Eclips4 disabled auto-merge September 26, 2024 15:23
Eclips4 enabled auto-merge (squash) September 26, 2024 15:26
Eclips4 merged commit 9c98fda into python:main Sep 26, 2024
Eclips4 deleted the issue-124606 branch September 26, 2024 15:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL