[Boost-bugs] [Boost C++ Libraries] #7919: timer_handle in boost::this_thread::interruptible_wait is not closed, which causes memory leak

Subject: [Boost-bugs] [Boost C++ Libraries] #7919: timer_handle in boost::this_thread::interruptible_wait is not closed, which causes memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-22 18:32:08


#7919: timer_handle in boost::this_thread::interruptible_wait is not closed, which
causes memory leak
--------------------------------------------+-------------------------------
 Reporter: cathy.guo@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: timer handle leak, memory leak |
--------------------------------------------+-------------------------------
 A timer handle is created in boost::this_thread::interruptible_wait (the
 code is listed below). The source file is
 libs\thread\src\win32\thread.cpp.

 detail::win32::handle_manager timer_handle;
 timer_handle=CreateWaitableTimer(NULL,false,NULL);

 CloseHandle is not called on timer_handle. This causes memory leak.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7919>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC