[Bug libstdc++/59807] mutex misses destructor if non-function call initialization is used

ahanins at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 14 15:33:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59807

--- Comment #1 from Andrey H. <ahanins at gmail dot com> ---
Simplest code which leaks handles on Windows:

for(;;) {
  std::mutex op_mutex;
  op_mutex.lock();
  op_mutex.unlock();
}



More information about the Gcc-bugs mailing list