]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121390: tracemalloc: Fix tracebacks memory leak (#121391)
authorJosh Brobst <jbrobst@proton.me>
Fri, 5 Jul 2024 06:39:48 +0000 (02:39 -0400)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2024 06:39:48 +0000 (08:39 +0200)
commitdb39bc42f90c151b298f97b780e62703adbf1221
treecc267e743fc2a547a8638e37389bb5fdda1918b7
parentcb688bab08559079d0ee9ffd841dd6eb11116181
gh-121390: tracemalloc: Fix tracebacks memory leak (#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.
Python/tracemalloc.c