--- fb303/ThreadCachedServiceData.cpp +++ fb303/ThreadCachedServiceData.cpp @@ -96,7 +96,7 @@ ThreadCachedServiceData::StatsThreadLocal& ThreadCachedServiceData::getStatsThreadLocal() { static folly::Indestructible threadLocal{[]() { - return ThreadCachedServiceData::ThreadLocalStatsMap{fbData.ptr()}; + return new ThreadCachedServiceData::ThreadLocalStatsMap{fbData.ptr()}; }}; return *threadLocal; }