]> gcc.gnu.org Git - gcc.git/commitdiff
final.c (shorten_branches): Free uid_shuid before reallocating it.
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 13 May 2004 21:52:34 +0000 (21:52 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 13 May 2004 21:52:34 +0000 (14:52 -0700)
2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r81807

gcc/ChangeLog
gcc/final.c

index 63fbc58cd9725f4e897c42c1d740664dd3749d6f..9885c7746d792956d3c3a4beac7dba8962afa797 100644 (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>
index 96a7a5bfcdbc2dc9bdae5898b880eab112e62ee6..281b161956f15848ac53cdee8204b442a74e43b3 100644 (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 ())
This page took 0.072592 seconds and 5 git commands to generate.