Fix memory corruption bug found and fixed by Andrew C. Morrow.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@157476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51065657aa
commit
3e3e5ebc72
@ -755,7 +755,6 @@ template <class _Alloc>
|
|||||||
void
|
void
|
||||||
__assoc_sub_state_alloc<_Alloc>::__on_zero_shared() _NOEXCEPT
|
__assoc_sub_state_alloc<_Alloc>::__on_zero_shared() _NOEXCEPT
|
||||||
{
|
{
|
||||||
this->~base();
|
|
||||||
typename _Alloc::template rebind<__assoc_sub_state_alloc>::other __a(__alloc_);
|
typename _Alloc::template rebind<__assoc_sub_state_alloc>::other __a(__alloc_);
|
||||||
this->~__assoc_sub_state_alloc();
|
this->~__assoc_sub_state_alloc();
|
||||||
__a.deallocate(this, 1);
|
__a.deallocate(this, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user