Closed
Description
Bug report
Bug description:
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
. The leaked traceback keys can be seen with AddressSanitizer:
./configure --with-pydebug --with-address-sanitizer
make -j "$(nproc)"
./python -X tracemalloc -c 'print("hello there")'
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux