From 07a1f7953e64b6b3c8edabbe412099968bce7ab5 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 May 2004 21:52:34 +0000 Subject: final.c (shorten_branches): Free uid_shuid before reallocating it. 2004-05-13 Andrew Pinski * final.c (shorten_branches): Free uid_shuid before reallocating it. From-SVN: r81807 --- gcc/final.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/final.c') diff --git a/gcc/final.c b/gcc/final.c index 96a7a5b..281b161 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 ()) -- cgit v1.1