Opened 10 years ago

Closed 10 years ago

#7350 closed Bugs (fixed)

allocator_destructor does not destroy object

Reported by: olli Owned by: viboes
Milestone: Boost 1.52.0 Component: thread
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc:

Description

allocator_destructor<>::operator(pointer p) does only call container::allocator_traits<>::deallocate() which does only free the storage.

Solution: call container::allocator_traits<>::destroy() before container::allocator_traits<>::deallocate().

Change History (2)

comment:1 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.52.0
Status: newassigned
Version: Boost 1.52.0Boost 1.51.0

See patch attached to #7349.

Committed in trunk revision [80460].

comment:2 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

Committed revision 80516.

Note: See TracTickets for help on using tickets.