]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-124606: Fix reference leak in error path in `datetime_fromisoformat` in `_datetime...
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 26 Sep 2024 15:30:21 +0000 (18:30 +0300)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 15:30:21 +0000 (15:30 +0000)
commit9c98fdab7d1167211c9d162c418e2b443a02867a
tree819e43fcfcbaf7a2a49e68fbb948e22327b9ff5b
parent257a20a81764fcc17bcde9c0cec57fbc53a4adc7
gh-124606: Fix reference leak in error path in `datetime_fromisoformat` in `_datetimemodule.c` (#124607)

Previously `tzdata` and `dtstr_clean` were not decrefed in the `invalid_iso_midnight` error path of the `datetime_isoformat` function.
Modules/_datetimemodule.c