Re: [PATCH v2 2/9] perf tools: splice events onto evlist even on error

2019-10-23 Thread Jiri Olsa
On Tue, Oct 22, 2019 at 05:53:30PM -0700, Ian Rogers wrote: > If event parsing fails the event list is leaked, instead splice the list > onto the out result and let the caller cleanup. > > Signed-off-by: Ian Rogers > --- > tools/perf/util/parse-events.c | 17 +++-- > 1 file changed,

[PATCH v2 2/9] perf tools: splice events onto evlist even on error

2019-10-22 Thread Ian Rogers
If event parsing fails the event list is leaked, instead splice the list onto the out result and let the caller cleanup. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/parse-event