summaryrefslogtreecommitdiff
path: root/gcc/java/except.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-17 22:48:59 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-17 22:48:59 +0000
commit0e41c837593498cfe3907dccf7ac16138d165060 (patch)
tree48a9d6c3b8d0c7fffc5579af26b2283b3690f7ad /gcc/java/except.c
parent166b1e8321ffa7259699841283f40742ddd2b3e0 (diff)
downloadgcc-0e41c837593498cfe3907dccf7ac16138d165060.tar.gz
2000-10-17 Alexandre Petit-Bianco <apbianco@cygnus.com>
* except.c (free_eh_ranges): Don't free `whole_range.' (http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00557.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36915 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/except.c')
-rw-r--r--gcc/java/except.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/except.c b/gcc/java/except.c
index 258bbc0b2a1..f14d9437871 100644
--- a/gcc/java/except.c
+++ b/gcc/java/except.c
@@ -232,7 +232,8 @@ free_eh_ranges (range)
{
struct eh_range *next = range->next_sibling;
free_eh_ranges (range->first_child);
- free (range);
+ if (range != &whole_range)
+ free (range);
range = next;
}
}