diff --git a/tests/std/tests/Dev09_056375_locale_cleanup/test.cpp b/tests/std/tests/Dev09_056375_locale_cleanup/test.cpp index 02bbe0388cf..7d0c000ae60 100644 --- a/tests/std/tests/Dev09_056375_locale_cleanup/test.cpp +++ b/tests/std/tests/Dev09_056375_locale_cleanup/test.cpp @@ -65,7 +65,9 @@ void test_dll() { TheFuncProc pFunc = reinterpret_cast(GetProcAddress(hLibrary, "DllTest")); assert(pFunc != nullptr); pFunc(); +#if defined(_DLL) || !defined(__SANITIZE_ADDRESS__) // TRANSITION, VSO-2046190 FreeLibrary(hLibrary); +#endif // defined(_DLL) || !defined(__SANITIZE_ADDRESS__) #endif // ^^^ !defined(_M_CEE) ^^^ }