Skip to content

PYTHON-5179 Fix memory leak in bson_str_to_json #64

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

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Mar 3, 2025

Fixes #62

@blink1073 blink1073 requested a review from NoahStapp March 3, 2025 18:43
@blink1073 blink1073 requested a review from a team as a code owner March 3, 2025 18:43
CHANGELOG.rst Outdated
@@ -3,7 +3,8 @@ Changelog

0.6.0 (unreleased)
``````````````````
Drop support for Python 3.8.
- Drop support for Python 3.8.
- Fix memory leak in ``bson_str_to_json``.
Copy link
Collaborator

@ShaneHarvey ShaneHarvey Mar 3, 2025

Choose a reason for hiding this comment

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

Suggest:

- Fix memory leak in ``dump`` and ``dumps`` when an invalid ``mode`` is provided. 

bson_str_to_json is an internal method name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@blink1073 blink1073 requested a review from ShaneHarvey March 3, 2025 18:57
@blink1073 blink1073 merged commit 2e6aa7a into mongodb-labs:master Mar 3, 2025
41 checks passed
@blink1073 blink1073 deleted the PYTHON-5179 branch March 3, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak during error handling
3 participants