[PATCH OBVIOUS]Fix memory leak in tree-predcom.c

Bin Cheng Bin.Cheng@arm.com
Fri Nov 3 12:37:00 GMT 2017


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?

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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: predcom-leak.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171103/aaab30cd/attachment.txt>


More information about the Gcc-patches mailing list