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@… |
Change History (3)
comment:1 by , 14 years ago
| Status: | new → assigned |
|---|
comment:2 by , 14 years ago
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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