This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH OBVIOUS]Fix memory leak in tree-predcom.c
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Bin Cheng <Bin dot Cheng at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Fri, 3 Nov 2017 14:45:54 +0100
- Subject: Re: [PATCH OBVIOUS]Fix memory leak in tree-predcom.c
- Authentication-results: sourceware.org; auth=none
- References: <DB5PR0801MB27423889E5238C7063CAC0C7E75D0@DB5PR0801MB2742.eurprd08.prod.outlook.com>
On Fri, Nov 3, 2017 at 1:36 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> I ran into this memory leak issue in tree-predcom.c when investigating other PRs.
> This is the obvious fix by freeing reference of trivial component.
> Bootstrap and test on x86_64. Is it OK?
Ok.
Thanks,
Richard.
> Thanks,
> bin
> 2017-11-02 Bin Cheng <bin.cheng@arm.com>
>
> * tree-predcom.c (determine_roots_comp): Avoid memory leak by freeing
> reference of trivial component.