Skip to content

bpo-41453: Fix a possible reference leak in _locale.localeconv() #21699

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

Closed
wants to merge 1 commit into from

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Aug 1, 2020

If the _Py_GetLocaleconvNumeric() call fails in _locale_localeconv_impl(),
"decimal_point" may be leaked.

https://bugs.python.org/issue41453

If the _Py_GetLocaleconvNumeric() call fails in _locale_localeconv_impl(),
"decimal_point" may be leaked.
@ZackerySpytz ZackerySpytz changed the title Fix a possible reference leak in _locale.localeconv() bpo-41453: Fix a possible reference leak in _locale.localeconv() Aug 1, 2020
@ZackerySpytz
Copy link
Contributor Author

It may be better to modify _Py_GetLocaleconvNumeric() instead (decref decimal_point if the second PyUnicode_DecodeLocale() call fails).

@vstinner
Copy link
Member

Bug already fixed by commit f231203. Thanks for your PR!

@vstinner vstinner closed this May 25, 2022
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.

4 participants