Opened 14 years ago

Closed 14 years ago

#2813 closed Bugs (fixed)

shared_ptr leaks an object when its assignment operator is reentered

Reported by: Peter Dimov Owned by: Peter Dimov
Milestone: Boost 1.39.0 Component: smart_ptr
Version: Severity: Problem
Keywords: Cc: gast128@…

Description

Change History (3)

comment:1 by Peter Dimov, 14 years ago

Status: newassigned

comment:2 by Peter Dimov, 14 years ago

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

comment:3 by Peter Dimov, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [51688]) Merge [51643] to release. Fixes #2813.

Note: See TracTickets for help on using tickets.