Re: [PATCH] perf script: Fix possible memory leaks

2014-08-11 Thread Namhyung Kim
Hi Adrian, On Fri, 01 Aug 2014 14:32:19 +0300, Adrian Hunter wrote: > On 1/08/2014 11:24 a.m., Namhyung Kim wrote: >> Some paths in perf script don't call perf_session__delete() after >> creating a new session. >> [SNIP] >> -perf_session__delete(session); >> cleanup_scripting(); >> +out_

Re: [PATCH] perf script: Fix possible memory leaks

2014-08-01 Thread Adrian Hunter
On 1/08/2014 11:24 a.m., Namhyung Kim wrote: Some paths in perf script don't call perf_session__delete() after creating a new session. Signed-off-by: Namhyung Kim --- tools/perf/builtin-script.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --g