2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 23:42:18 +00:00

Apply manualy fixes on develop concerning memory leak os tss and scoped_thread move assignement.

This commit is contained in:
Vicente J. Botet Escriba
2016-04-24 01:05:45 +02:00
parent 159868ac77
commit 2494f3fc7a
3 changed files with 9 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ namespace boost
{
if(memcmp(&epoch_tss_key_flag, &pthread_once_init_value, sizeof(pthread_once_t)))
{
void* data = (void*)pthread_getspecific(epoch_tss_key);
if (data)
delete_epoch_tss_data(data);
pthread_key_delete(epoch_tss_key);
}
}