Re: [Boost-bugs] [Boost C++ Libraries] #2813: shared_ptr leaks an object when its assignment operator is reentered

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2813: shared_ptr leaks an object when its assignment operator is reentered
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-07 22:22:01


#2813: shared_ptr leaks an object when its assignment operator is reentered
---------------------------+------------------------------------------------
  Reporter: pdimov | Owner: pdimov
      Type: Bugs | Status: assigned
 Milestone: Boost 1.39.0 | Component: smart_ptr
   Version: | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------

Comment(by pdimov):

 (In [51643]) De-optimize assignment into this_type(r).swap(*this) - turns
 out that they were not equivalent, leading to leaks in contrived cases.
 Refs #2813.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2813#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:49:59 UTC