From 09a6ce6bc0acc19449aa72ec906a174ee2ad5e68 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 9 Sep 2020 20:08:37 -0700 Subject: [PATCH] Add re2 to memory leak checker whitelist (#5101) * Add re2 to memory leak checker whitelist --- onnxruntime/core/platform/windows/debug_alloc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/onnxruntime/core/platform/windows/debug_alloc.cc b/onnxruntime/core/platform/windows/debug_alloc.cc index 7025363dd1..d8f1d092ec 100644 --- a/onnxruntime/core/platform/windows/debug_alloc.cc +++ b/onnxruntime/core/platform/windows/debug_alloc.cc @@ -214,6 +214,7 @@ Memory_LeakCheck::~Memory_LeakCheck() { // empty_named_groups = new std::map; // empty_group_names = new std::map; }); if (string.find("RtlRunOnceExecuteOnce") == std::string::npos && + string.find("re2::RE2::Init") == std::string::npos && string.find("testing::internal::Mutex::ThreadSafeLazyInit") == std::string::npos && string.find("testing::internal::ThreadLocalRegistryImpl::GetThreadLocalsMapLocked") == std::string::npos && string.find("testing::internal::ThreadLocalRegistryImpl::GetValueOnCurrentThread") == std::string::npos) {