This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r260323 - in /trunk/libstdc++-v3: ChangeLog lib...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 17 May 2018 15:03:30 -0000
- Subject: r260323 - in /trunk/libstdc++-v3: ChangeLog lib...
Author: redi
Date: Thu May 17 15:03:29 2018
New Revision: 260323
URL: https://gcc.gnu.org/viewcvs?rev=260323&root=gcc&view=rev
Log:
PR libstdc++/85812 fix memory leak in std::make_exception_ptr
PR libstdc++/85812
* libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
* libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
Refactor to separate non-throwing and throwing implementations.
[__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
if constructing the object throws.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/libsupc++/cxxabi_init_exception.h
trunk/libstdc++-v3/libsupc++/exception_ptr.h