]> gcc.gnu.org Git - gcc.git/commitdiff
except.c (find_exception_handler_labels): Free LABELS when we're done.
authorBrendan Kehoe <brendan@lisa.cygnus.com>
Tue, 30 Sep 1997 18:25:09 +0000 (18:25 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Tue, 30 Sep 1997 18:25:09 +0000 (14:25 -0400)
* except.c (find_exception_handler_labels): Free LABELS when we're
done.

fixes memory leak

From-SVN: r15808

gcc/ChangeLog
gcc/except.c

index 1aa0a4daa3ed49f89a079c92b990a65abb87624a..ffd59cc8a37adc285dc83189aef42213c4af8fa5 100644 (file)
@@ -1,3 +1,8 @@
+1997-09-30  Brendan Kehoe  <brendan@lisa.cygnus.com>
+
+       * except.c (find_exception_handler_labels): Free LABELS when we're
+       done.
+
 Mon Sep 29 14:04:35 1997  Jeffrey A Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index ae75175393bf5968a78c3d25af00c054ba47ed0a..e6ec5df323212091f3ab3e334f2f783f48b2b4b6 100644 (file)
@@ -1847,6 +1847,8 @@ find_exception_handler_labels ()
            warning ("mismatched EH region %d", NOTE_BLOCK_NUMBER (insn));
        }
     }
+
+  free (labels);
 }
 
 /* Perform sanity checking on the exception_handler_labels list.
This page took 0.068592 seconds and 5 git commands to generate.