Re: [PATCH v2 1/2] perf metric: Fix some memory leaks

2020-09-06 Thread Namhyung Kim
Hi Jiri, On Sun, Sep 6, 2020 at 9:41 PM Jiri Olsa wrote: > > On Sat, Sep 05, 2020 at 11:19:11AM +0900, Namhyung Kim wrote: > > I found some memory leaks while reading the metric code. Some are > > real and others only occur in the error path. When it failed during > > metric or event parsing, i

Re: [PATCH v2 1/2] perf metric: Fix some memory leaks

2020-09-06 Thread Jiri Olsa
On Sat, Sep 05, 2020 at 11:19:11AM +0900, Namhyung Kim wrote: > I found some memory leaks while reading the metric code. Some are > real and others only occur in the error path. When it failed during > metric or event parsing, it should release all resources properly. > > Cc: Kajol Jain > Cc: J

[PATCH v2 1/2] perf metric: Fix some memory leaks

2020-09-04 Thread Namhyung Kim
I found some memory leaks while reading the metric code. Some are real and others only occur in the error path. When it failed during metric or event parsing, it should release all resources properly. Cc: Kajol Jain Cc: John Garry Cc: Ian Rogers Fixes: b18f3e365019d ("perf stat: Support JSON