diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-05-17 16:03:29 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-17 16:03:29 +0100 |
commit | ff03245e00af4448173fb5c11420876345e832f3 (patch) | |
tree | 012b0c91f48ccf16f484697d398f4d10e71ad096 /libcpp/line-map.c | |
parent | f1bcb061d172ca7e3bdcc46476b20776382a2974 (diff) | |
download | gcc-ff03245e00af4448173fb5c11420876345e832f3.zip gcc-ff03245e00af4448173fb5c11420876345e832f3.tar.gz gcc-ff03245e00af4448173fb5c11420876345e832f3.tar.bz2 |
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.
From-SVN: r260323
Diffstat (limited to 'libcpp/line-map.c')
0 files changed, 0 insertions, 0 deletions