Re: [PATCH v2 1/2] perf tools: Fix potential memory leaks in perf events parser

2020-06-13 Thread Chen Wandun
在 2020/6/12 2:50, Markus Elfring 写道: Fix memory leak of in function parse_events_term__sym_hw() and parse_events_term__clone() when error occur. How do you think about a wording variant like the following? Release a configuration object after a string duplication failed. Thank you for y

Re: [PATCH v2 1/2] perf tools: Fix potential memory leaks in perf events parser

2020-06-12 Thread Greg KH
On Thu, Jun 11, 2020 at 08:50:58PM +0200, Markus Elfring wrote: > > Fix memory leak of in function parse_events_term__sym_hw() > > and parse_events_term__clone() when error occur. > > How do you think about a wording variant like the following? > >Release a configuration object after a string

Re: [PATCH v2 1/2] perf tools: Fix potential memory leaks in perf events parser

2020-06-11 Thread Markus Elfring
> Fix memory leak of in function parse_events_term__sym_hw() > and parse_events_term__clone() when error occur. How do you think about a wording variant like the following? Release a configuration object after a string duplication failed. Regards, Markus