The thread class implemented in Visual Studio 2012 has a bug:if use it several times, there are 44 bytes memory leak always.The follow code can witness the BUG:int main(int, char**){ _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); std::thread thr([](void){}); thr.join(); return 0;}
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results