Fix memory corruption bug found and fixed by Andrew C. Morrow.

llvm-svn: 157476
This commit is contained in:
Howard Hinnant 2012-05-25 15:55:46 +00:00
parent a28bf63d9a
commit a960edd203
1 changed files with 0 additions and 1 deletions

View File

@ -755,7 +755,6 @@ template <class _Alloc>
void
__assoc_sub_state_alloc<_Alloc>::__on_zero_shared() _NOEXCEPT
{
this->~base();
typename _Alloc::template rebind<__assoc_sub_state_alloc>::other __a(__alloc_);
this->~__assoc_sub_state_alloc();
__a.deallocate(this, 1);