Merge topic 'revert-loguru-strdup-fix'

542bb3659 Merge branch 'upstream-loguru' into revert-loguru-strdup-fix
d39a72313 loguru 2019-02-12 (6ab123ef)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Allison Vacanti <allison.vacanti@kitware.com>
Merge-request: !1548
This commit is contained in:
Haocheng LIU 2019-02-12 14:55:06 +00:00 committed by Kitware Robot
commit a2c03f2731

@ -2283,9 +2283,7 @@ namespace loguru
{
#if LOGURU_PTLS_NAMES
(void)pthread_once(&s_pthread_key_once, make_pthread_key_name);
char* name_dup = strdup(name);
(void)pthread_setspecific(s_pthread_key_name, name_dup);
free(name_dup);
(void)pthread_setspecific(s_pthread_key_name, strdup(name));
#elif LOGURU_PTHREADS
#ifdef __APPLE__