final.c (shorten_branches): Free uid_shuid before reallocating it.

2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * final.c (shorten_branches): Free uid_shuid before
        reallocating it.

From-SVN: r81807
This commit is contained in:
Andrew Pinski 2004-05-13 21:52:34 +00:00 committed by Andrew Pinski
parent 2b64895754
commit 07a1f7953e
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* final.c (shorten_branches): Free uid_shuid before
reallocating it.
* bb-reoder.c (connect_traces): Free cold_traces at the end.
2004-05-13 Jeff Law <law@redhat.com>

View File

@ -767,6 +767,9 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED)
/* Compute maximum UID and allocate label_align / uid_shuid. */
max_uid = get_max_uid ();
/* Free uid_shuid before reallocating it. */
free (uid_shuid);
uid_shuid = xmalloc (max_uid * sizeof *uid_shuid);
if (max_labelno != max_label_num ())