From d7ed2718f600a7f881be30e26110bfe3d93cc8f4 Mon Sep 17 00:00:00 2001 From: amacleod Date: Fri, 23 Oct 1998 16:26:19 +0000 Subject: [PATCH] 1998-10-23 Andrew MacLeod * exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23259 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/exception.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e5e8def2c4f..ae7eb528b94 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-10-23 Andrew MacLeod + + * exception.cc (__cp_pop_exception): Free the original exception + value, not the potentially coerced one. + 1998-10-23 Mark Mitchell * Makefile.in (hash.h): Run gperf when necessary. diff --git a/gcc/cp/exception.cc b/gcc/cp/exception.cc index 05b431521cc..2cc0bc074a8 100644 --- a/gcc/cp/exception.cc +++ b/gcc/cp/exception.cc @@ -233,7 +233,7 @@ __cp_pop_exception (cp_eh_info *p) p->cleanup (p->value, 2); if (! __is_pointer (p->type)) - __eh_free (p->value); + __eh_free (p->original_value); // value may have been co-erced. __eh_free (p); } -- 2.11.4.GIT