From 943767e30c4c566fd6ae1a421f32e37f25bfba04 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Fri, 23 Oct 1998 16:26:19 +0000 Subject: [PATCH] exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one. 1998-10-23 Andrew MacLeod * exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one. From-SVN: r23259 --- 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 e5e8def..ae7eb52 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 05b4315..2cc0bc0 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.7.4