Commit 07a1f795 by Andrew Pinski Committed by Andrew Pinski

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
parent 2b648957
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu> 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. * bb-reoder.c (connect_traces): Free cold_traces at the end.
2004-05-13 Jeff Law <law@redhat.com> 2004-05-13 Jeff Law <law@redhat.com>
......
...@@ -767,6 +767,9 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED) ...@@ -767,6 +767,9 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED)
/* Compute maximum UID and allocate label_align / uid_shuid. */ /* Compute maximum UID and allocate label_align / uid_shuid. */
max_uid = get_max_uid (); max_uid = get_max_uid ();
/* Free uid_shuid before reallocating it. */
free (uid_shuid);
uid_shuid = xmalloc (max_uid * sizeof *uid_shuid); uid_shuid = xmalloc (max_uid * sizeof *uid_shuid);
if (max_labelno != max_label_num ()) if (max_labelno != max_label_num ())
......
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