Fix memory corruption bug found and fixed by Andrew C. Morrow.
authorHoward Hinnant <hhinnant@apple.com>
Fri, 25 May 2012 15:55:46 +0000 (15:55 +0000)
committerHoward Hinnant <hhinnant@apple.com>
Fri, 25 May 2012 15:55:46 +0000 (15:55 +0000)
llvm-svn: 157476

libcxx/include/future

index aae707e..f3e36cb 100644 (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);