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
This commit is contained in:
Richard Henderson 1999-09-09 00:17:20 -07:00 committed by Richard Henderson
parent 76095e2f54
commit a9f0664a5a
2 changed files with 9 additions and 0 deletions

View File

@ -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'.

View File

@ -844,6 +844,12 @@ find_all_handler_type_matches (array)
}
}
}
if (n_ptr == 0)
{
free (ptr);
ptr = NULL;
}
*array = ptr;
return n_ptr;
}