diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-09 00:17:20 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-09 00:17:20 -0700 |
commit | a9f0664a5a61777ecc51848e2e2878effdd65aaa (patch) | |
tree | abe825dcb64acc0256a2dcbce0a8a950594719d8 | |
parent | 76095e2f540a989ea6ff09bdce8d16c648ceca50 (diff) | |
download | gcc-a9f0664a5a61777ecc51848e2e2878effdd65aaa.zip gcc-a9f0664a5a61777ecc51848e2e2878effdd65aaa.tar.gz gcc-a9f0664a5a61777ecc51848e2e2878effdd65aaa.tar.bz2 |
except.c (find_all_handler_type_matches): Free the list if we found no matches.
* except.c (find_all_handler_type_matches): Free the list if
we found no matches.
From-SVN: r29227
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/except.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 589c724..a73b78a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com> + * except.c (find_all_handler_type_matches): Free the list if + we found no matches. + * combine.c (SUBST): Break out to a real function do_SUBST. (SUBST_INT): Likewise. * gcse.c (free_pre_mem): Free `temp_bitmap'. diff --git a/gcc/except.c b/gcc/except.c index ca2c89d..98dba0c 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -844,6 +844,12 @@ find_all_handler_type_matches (array) } } } + + if (n_ptr == 0) + { + free (ptr); + ptr = NULL; + } *array = ptr; return n_ptr; } |