Home Dashboard Directory Help

memory leak for std::thread by Guo Xiaodong


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 773429
Opened: 12/4/2012 8:18:32 AM
Access Restriction: Public
User(s) can reproduce this bug


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**)
    std::thread thr([](void){});
    return 0;
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:31 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 12/17/2012 at 4:37 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in the next release of our C++ Standard Library implementation.

Note: Connect doesn't notify me about comments. If you have any further questions, please E-mail me.

Stephan T. Lavavej
Senior Developer - Visual C++ Libraries
Posted by Microsoft on 12/4/2012 at 7:12 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 12/4/2012 at 8:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.