This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leak patch-I



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]