aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2000-05-30 09:58:30 +0200
committerPhilippe De Muyter <phdm@gcc.gnu.org>2000-05-30 07:58:30 +0000
commitd3a36404bad193707fbdcf728282f25f076ab5b5 (patch)
treec9d92cc659fa278bbc8552612e05701663f4b603 /gcc
parent79368e3fe2249012dba49bda823c116f9c922c84 (diff)
downloadgcc-d3a36404bad193707fbdcf728282f25f076ab5b5.zip
gcc-d3a36404bad193707fbdcf728282f25f076ab5b5.tar.gz
gcc-d3a36404bad193707fbdcf728282f25f076ab5b5.tar.bz2
* except.c (free_exception_table): Do not free NULL.
From-SVN: r34263
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/except.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 525c8b0..050f4cc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
+
+ * except.c (free_exception_table): Do not free NULL.
+
2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.c (do_if): Don't save and restore only_seen_white here.
diff --git a/gcc/except.c b/gcc/except.c
index db9a58f..eb9ad28 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -2297,7 +2297,8 @@ set_exception_version_code (code)
void
free_exception_table ()
{
- free (eh_table);
+ if (eh_table)
+ free (eh_table);
clear_function_eh_region ();
}