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:
commit
a2c03f2731
4
vtkm/thirdparty/loguru/vtkmloguru/loguru.hpp
vendored
4
vtkm/thirdparty/loguru/vtkmloguru/loguru.hpp
vendored
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user