Commit a9f0664a by Richard Henderson Committed by Richard Henderson

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
parent 76095e2f
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'.
......
......@@ -844,6 +844,12 @@ find_all_handler_type_matches (array)
}
}
}
if (n_ptr == 0)
{
free (ptr);
ptr = NULL;
}
*array = ptr;
return n_ptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment