Memory leak when using concurrent.futures.ThreadPoolExecutor with glibc (but possibly not with jemalloc)

Also keep in mind that the free-threaded build doesn’t use glibc malloc, it uses mimalloc.

There has been some effort to improve memory use on the free-threaded build but it’s still an open problem: Python support for free threading — Python 3.14.6 documentation