While using pthread tss_key_create() to prepare a key for use by various threads to maintain thread-specific data, ensure that the thread-specific data stored for a key is cleaned up when the thread exits; otherwise, potential memory leaks or misuse of data can occur.
...
Risk Assessment
Failing to destroy the thread-specific objects could lead to memory leaks and misuse of data.
...