Re: [PATCH] Fix two potential memory leak

2019-11-26 Thread luoxhu
Thanks, On 2019/11/26 18:15, Jan Hubicka wrote: >> Hi, >> >> On 2019/11/26 16:04, Jan Hubicka wrote: Summary variables should be deleted at the end of write_summary. It's first newed in generate_summary, and second newed in read_summary. Therefore, delete the first in write_summary,

Re: [PATCH] Fix two potential memory leak

2019-11-26 Thread Jan Hubicka
> Hi, > > On 2019/11/26 16:04, Jan Hubicka wrote: > > > Summary variables should be deleted at the end of write_summary. > > > It's first newed in generate_summary, and second newed in read_summary. > > > Therefore, delete the first in write_summary, delete the second in > > > execute. > > > > >

Re: [PATCH] Fix two potential memory leak

2019-11-26 Thread luoxhu
Hi, On 2019/11/26 16:04, Jan Hubicka wrote: Summary variables should be deleted at the end of write_summary. It's first newed in generate_summary, and second newed in read_summary. Therefore, delete the first in write_summary, delete the second in execute. gcc/ChangeLog: 2019-11-26 Lu

Re: [PATCH] Fix two potential memory leak

2019-11-26 Thread Jan Hubicka
> Summary variables should be deleted at the end of write_summary. > It's first newed in generate_summary, and second newed in read_summary. > Therefore, delete the first in write_summary, delete the second in > execute. > > gcc/ChangeLog: > > 2019-11-26 Luo Xiong Hu > > * ipa-pur

[PATCH] Fix two potential memory leak

2019-11-25 Thread luoxhu
Summary variables should be deleted at the end of write_summary. It's first newed in generate_summary, and second newed in read_summary. Therefore, delete the first in write_summary, delete the second in execute. gcc/ChangeLog: 2019-11-26 Luo Xiong Hu * ipa-pure-const.c (pure_