Boost C++ Libraries: Ticket #2813: shared_ptr leaks an object when its assignment operator is reentered https://svn.boost.org/trac10/ticket/2813 <p> <a class="ext-link" href="http://lists.boost.org/boost-users/2009/02/45548.php"><span class="icon">​</span>http://lists.boost.org/boost-users/2009/02/45548.php</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2813 Trac 1.4.3 Peter Dimov Sat, 28 Feb 2009 17:38:57 GMT status changed https://svn.boost.org/trac10/ticket/2813#comment:1 https://svn.boost.org/trac10/ticket/2813#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Peter Dimov Sat, 07 Mar 2009 22:21:58 GMT <link>https://svn.boost.org/trac10/ticket/2813#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2813#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51643" title="De-optimize assignment into this_type(r).swap(*this) - turns out that ...">[51643]</a>) De-optimize assignment into this_type(r).swap(*this) - turns out that they were not equivalent, leading to leaks in contrived cases. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2813" title="#2813: Bugs: shared_ptr leaks an object when its assignment operator is reentered (closed: fixed)">#2813</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Tue, 10 Mar 2009 18:26:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2813#comment:3 https://svn.boost.org/trac10/ticket/2813#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51688" title="Merge [51643] to release. Fixes #2813.">[51688]</a>) Merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/51643" title="De-optimize assignment into this_type(r).swap(*this) - turns out that ...">[51643]</a> to release. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2813" title="#2813: Bugs: shared_ptr leaks an object when its assignment operator is reentered (closed: fixed)">#2813</a>. </p> Ticket