This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Memory leak patch-I
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Uttam Pawar <uttamp at us dot ibm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 Feb 2006 19:48:35 -0500
- Subject: Re: Memory leak patch-I
- References: <1140223686.7074.161.camel@dyn9047018077.beaverton.ibm.com>
On Feb 17, 2006, at 7:48 PM, Uttam Pawar wrote:
Hi,
The following patch fixes some more memory leaks. I did not file any
PRs
to track these leaks (so these are not reported). Let me know if I need
to open one.
Bootstrapped and regtested on powerpc64-linux. No new regressions.
Thanks,
Uttam
Patch
======================================================================
2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
* gensupport.c (identify_predicable_attribute): Free
p_false pointer.
* gcov.c (create_file_names): Free name pointer.
* bt-load.c (augment_live_range): Free tos pointer.
+ if (p_false)
+ free (p_false);
You don't need if (p_false) here as free with a NULL argument will just
ignore it.
+ if (p_false)
+ free (p_false);
Likewise.
+ if (p_false)
+ free (p_false);
Likewise.
+ if (p_false)
+ free (p_false);
Likewise.
Thanks,
Andrew Pinski