Skip to content
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

[3.13] gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391) #121392

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 5, 2024

The tracemalloc_tracebacks hash table has traceback keys and NULL
values, but its destructors do not reflect this -- key_destroy_func is
NULL while value_destroy_func is raw_free. Swap these to free the
traceback keys instead.
(cherry picked from commit db39bc4)

Co-authored-by: Josh Brobst jbrobst@proton.me

…1391)

The tracemalloc_tracebacks hash table has traceback keys and NULL
values, but its destructors do not reflect this -- key_destroy_func is
NULL while value_destroy_func is raw_free. Swap these to free the
traceback keys instead.
(cherry picked from commit db39bc4)

Co-authored-by: Josh Brobst <jbrobst@proton.me>
Copy link

cpython-cla-bot bot commented Jul 5, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@vstinner
Copy link
Member

@jbrobst: Can you please sign the Python CLA with your jbrobst@proton.me email address? Or click on the link in the previous comment.

@vstinner vstinner merged commit 4b76404 into python:3.13 Jul 21, 2024
34 checks passed
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.

None yet

3 participants