SIGN IN SIGN UP

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

gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391)

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

Co-authored-by: Josh Brobst <jbrobst@proton.me>
M
Miss Islington (bot) committed
4b76404a511c287a73e32eef927f7cc4377d3055
Parent: 6643524
Committed by GitHub <noreply@github.com> on 7/21/2024, 1:12:13 PM