* except.c (free_exception_table): Do not free NULL.
authorPhilippe De Muyter <phdm@macqel.be>
Tue, 30 May 2000 07:58:30 +0000 (09:58 +0200)
committerPhilippe De Muyter <phdm@gcc.gnu.org>
Tue, 30 May 2000 07:58:30 +0000 (07:58 +0000)
From-SVN: r34263

gcc/ChangeLog
gcc/except.c

index 525c8b0..050f4cc 100644 (file)
@@ -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.
index db9a58f..eb9ad28 100644 (file)
@@ -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 ();
 }