diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-09 07:17:20 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-09 07:17:20 +0000 |
commit | c01175dcee277bd2e19bb3a54d058b2234e99f24 (patch) | |
tree | abe825dcb64acc0256a2dcbce0a8a950594719d8 /gcc/except.c | |
parent | 2c8daaf1492b5be85b73fdf3dfd9841fd7569358 (diff) | |
download | gcc-c01175dcee277bd2e19bb3a54d058b2234e99f24.tar.gz |
* except.c (find_all_handler_type_matches): Free the list if
we found no matches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29227 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/except.c b/gcc/except.c index ca2c89d8df6..98dba0cb5da 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; } |