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

Subject: Re: [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-27 13:37:06


#7919: timer_handle in boost::this_thread::interruptible_wait is not closed, which
causes memory leak
--------------------------------------------+-------------------------------
  Reporter: cathy.guo@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords: timer handle leak, memory leak
--------------------------------------------+-------------------------------
Changes (by viboes):

  * owner: anthonyw => viboes
  * status: new => assigned


Old description:

> 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.

New description:

 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#comment:1>
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