There are 32 bytes leaked out of some internal runtime code, but they are allocated once globally, not "whenever a thread closes".
The code that generated the allocation that leaked in that issue (std::io::with_task_stdout) no longer exists, and I believe the thread local storage system has been rewritten since then as well. Could you clarify how that issue is relevant to modern Rust?