Re: [PATCH] icf: Fix memory leak of a vector.

2021-06-01 Thread Jeff Law via Gcc-patches
On 6/1/2021 8:28 AM, Martin Liška wrote: Simple leak fix. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: * ipa-icf.h: Use auto_vec for memory_access_types. OK jeff

[PATCH] icf: Fix memory leak of a vector.

2021-06-01 Thread Martin Liška
Simple leak fix. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: * ipa-icf.h: Use auto_vec for memory_access_types. --- gcc/ipa-icf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ipa

Re: [PATCH] ICF: fix memory leak

2021-02-09 Thread Richard Biener via Gcc-patches
On Tue, Feb 9, 2021 at 6:17 PM Martin Liška wrote: > > The following fixes a memory leak. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK. > Thanks, > Martin > > gcc/ChangeLog: > > PR ipa/99003 > * ipa-icf.c (sem_item::add_

[PATCH] ICF: fix memory leak

2021-02-09 Thread Martin Liška
The following fixes a memory leak. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: PR ipa/99003 * ipa-icf.c (sem_item::add_reference): Fix memory leak when a reference exists. --- gcc/ipa-icf.c