diff options
author | Uttam Pawar <uttamp@us.ibm.com> | 2006-03-14 00:24:54 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-03-14 00:24:54 +0000 |
commit | a14df7dabe7ede95e34d726741524031746f563c (patch) | |
tree | 594fb29b671a50217635b5c472a25e76a118e4db /gcc/gensupport.c | |
parent | a62cdb32bbaf77729b94d47f4776196cacb30dfc (diff) | |
download | gcc-a14df7dabe7ede95e34d726741524031746f563c.zip gcc-a14df7dabe7ede95e34d726741524031746f563c.tar.gz gcc-a14df7dabe7ede95e34d726741524031746f563c.tar.bz2 |
re PR rtl-optimization/25739 (Memory leak in bt_load.c(augment_live_range))
2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
PR rtl-optimization/25739
* bt-load.c (augment_live_range): Free tos pointer.
* gensupport.c (identify_predicable_attribute): Free
p_false pointer.
* gcov.c (create_file_names): Free name pointer.
From-SVN: r112039
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index a880b11..16878b8 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -1,5 +1,5 @@ /* Support routines for the various generation passes. - Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 + Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -468,6 +468,8 @@ identify_predicable_attribute (void) message_with_line (elem->lineno, "attribute `predicable' is not a boolean"); errors = 1; + if (p_false) + free (p_false); return; } p_true[-1] = '\0'; @@ -485,12 +487,16 @@ identify_predicable_attribute (void) message_with_line (elem->lineno, "attribute `predicable' cannot be const"); errors = 1; + if (p_false) + free (p_false); return; default: message_with_line (elem->lineno, "attribute `predicable' must have a constant default"); errors = 1; + if (p_false) + free (p_false); return; } @@ -505,6 +511,9 @@ identify_predicable_attribute (void) value); errors = 1; } + + if (p_false) + free (p_false); } /* Return the number of alternatives in constraint S. */ |