Re: [Boost-bugs] [Boost C++ Libraries] #9830: memory leak in time_duration

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9830: memory leak in time_duration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-10 15:10:44


#9830: memory leak in time_duration
-------------------------------+------------------------
  Reporter: mm@… | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: date_time
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by anonymous):

 probably line 193 of posix_time_io.hpp

 {{{
 188 //instantiate a custom facet for dealing with times since the user
 189 //has not put one in the stream so far. This is for efficiency
 190 //since we would always need to reconstruct for every time period
 191 //if the locale did not already exist. Of course this will be
 overridden
 192 //if the user imbues as some later point.
 193 custom_ptime_facet* f = new custom_ptime_facet();
 194 std::locale l = std::locale(os.getloc(), f);
 195 os.imbue(l);
 196 f->put(oitr, os, os.fill(), td);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9830#comment:2>
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:16 UTC