diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 21:52:34 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 21:52:34 +0000 |
commit | c1b2657266fc2464f3bb24599774993f6f744c2b (patch) | |
tree | d63a4bbe75c18a88ab5de68444497039df482336 /gcc/final.c | |
parent | de69ffe48f9053fcc3053aae897a8d5f232b6694 (diff) | |
download | gcc-c1b2657266fc2464f3bb24599774993f6f744c2b.tar.gz |
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* final.c (shorten_branches): Free uid_shuid before
reallocating it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81807 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c index 96a7a5bfcdb..281b161956f 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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 ()) |