aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2000-05-31 14:37:38 +0200
committerPhilippe De Muyter <phdm@gcc.gnu.org>2000-05-31 12:37:38 +0000
commit231a2828e175844076109342b8dbe8bcb842a51f (patch)
tree3a3e35850a0c678fe4cc6c1ecf1fbdbba93ec7c0 /gcc/except.c
parent8c410416207d0fd87d574c621eaacfb74588c47e (diff)
downloadgcc-231a2828e175844076109342b8dbe8bcb842a51f.zip
gcc-231a2828e175844076109342b8dbe8bcb842a51f.tar.gz
gcc-231a2828e175844076109342b8dbe8bcb842a51f.tar.bz2
* except.c (clear_function_eh_region): Do not free NULL.
From-SVN: r34297
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c
index eb9ad28..ad2e310 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -931,7 +931,8 @@ clear_function_eh_region ()
next = ptr->next;
free (ptr);
}
- free (function_eh_regions);
+ if (function_eh_regions)
+ free (function_eh_regions);
num_func_eh_entries = 0;
current_func_eh_entry = 0;
}