diff --git a/include/spdlog/mdc.h b/include/spdlog/mdc.h index 7024db04..41f0c1f3 100644 --- a/include/spdlog/mdc.h +++ b/include/spdlog/mdc.h @@ -38,7 +38,7 @@ public: static void clear() { get_context().clear(); } static mdc_map_t &get_context() { - static thread_local mdc_map_t& context = *new mdc_map_t; + static thread_local mdc_map_t context; return context; } };