diff --git a/core/plugin/flusher/sls/SLSClientManager.cpp b/core/plugin/flusher/sls/SLSClientManager.cpp index 0eca46f717..be9e57291e 100644 --- a/core/plugin/flusher/sls/SLSClientManager.cpp +++ b/core/plugin/flusher/sls/SLSClientManager.cpp @@ -45,8 +45,8 @@ SLSClientManager* SLSClientManager::GetInstance() { #ifdef __ENTERPRISE__ return EnterpriseSLSClientManager::GetInstance(); #else - static auto ptr = unique_ptr(new SLSClientManager()); - return ptr.get(); + static SLSClientManager instance; + return &instance; #endif }