http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455
--- Comment #30 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-17 09:37:37 UTC --- (In reply to comment #29) > because __gthread_mutex_destroy returns void. Argh, why is gthr-win32.h different here?! Nevermind ... > after changing the return types of the _S_destroy functions to void and > removing the "return" specifiers, the test case compiles and runs fine without > any leak. Great, thanks very much for testing. I'll get similar changes done to <mutex> and get this checked in.